Workout With Friends
Stay fit with a little motivation
|
Classes | |
class | Storage |
Generic container class. More... |
Functions | |
def | parse_workout_report |
Parse and extract the needed data from the csv of the workout report. | |
def | calculate_wilks_coefficient |
Calculate the wilkes coefficient for this user. | |
def | calculate_one_rep_max |
Calculate the estimated one rep max. | |
def | calculate_bmi |
Calculate a persons body mass index, given weight (kg) and height (m). | |
def | years_ago |
Calculate the difference in years between the start date and today. | |
def | get_subclasses |
Get all classes residing in a given module which subclass a given base class. | |
def | split_cslist |
Split a comma separated list by both newlines and commas. | |
def | current_timestamp |
def | to_user_timezone |
Convert a datetime from system timezone to the given timezone. | |
def | to_system_timezone |
Convert a datetime from the given timezone to system timezone. | |
def | parse_timedelta |
Get the days, hours, and minutes from a timedelta object. | |
def | settings_from_prefix |
Return a dictionary of settings all containing the same key prefix, with the prefix removed from the keys. |
Variables | |
string | TIMESTAMP = 'timestamp_epoch' |
string | DISTANCE = 'DISTANCE' |
string | HEARTRATE = 'HEARTRATE' |
string | CALORIEBURN = 'CALORIEBURN' |
def wowf.lib.utils.calculate_bmi | ( | weight, | |
height | |||
) |
def wowf.lib.utils.calculate_one_rep_max | ( | weight, | |
repetitions | |||
) |
def wowf.lib.utils.calculate_wilks_coefficient | ( | weight, | |
gender | |||
) |
def wowf.lib.utils.get_subclasses | ( | module, | |
base, | |||
with_base = False |
|||
) |
def wowf.lib.utils.parse_timedelta | ( | td | ) |
def wowf.lib.utils.parse_workout_report | ( | workout_report | ) |
def wowf.lib.utils.settings_from_prefix | ( | settings, | |
prefix | |||
) |
def wowf.lib.utils.split_cslist | ( | cslist | ) |
def wowf.lib.utils.to_system_timezone | ( | dt, | |
timezone | |||
) |
def wowf.lib.utils.to_user_timezone | ( | dt, | |
timezone | |||
) |
def wowf.lib.utils.years_ago | ( | start_dt | ) |