def settings(tmpdir): settings = Settings(tmpdir) vdot = VDOT(settings.database, settings.vdot) vdot.calculate_vdot('HalfMarathon', '01:36:40') vdot.save_vdot() settings.get_settings() settings.get_zones() Scheduler(settings, 'Half Marathon 47 Miles', 'Test Schedule', race_date, start_date) return settings
print('\nTraining') for k, m, km in VDOT_values.training_paces: print(k.ljust(15), datetime.timedelta(seconds=m), datetime.timedelta(seconds=km)) print('\nRaces') print(VDOT_values.race_times) #print(VDOT_values.VDOT_paces) print(str(VDOT_values.vdot_score)) print(VDOT_values.vdot_score - dec(VDOT_values.vdot_score, 0, 'ROUND_FLOOR')) VDOT_values.save_vdot() settings.get_zones() print('SETTINGS') for r in db.connection.execute(""" SELECT COALESCE(VDOTHistory.VDOT, 0) AS VDOT, MaxHR Units, DateOfBirth FROM Settings LEFT JOIN VDOTHistory ON Settings.VDOTHistoryID = VDOTHistory.VDOTHistoryID; """): print(r) print('VDOT')