Change look of users list of workouts, added month calendar (static for now), & and added in hyperscript (will switch to using this for client side stuff)
This commit is contained in:
2
app.py
2
app.py
@@ -10,6 +10,7 @@ import matplotlib.dates as mdates
|
||||
import os
|
||||
import sparklines
|
||||
from dateutil.parser import isoparse
|
||||
import humanize
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
@@ -378,6 +379,7 @@ def get_workouts_for_user(user_id):
|
||||
'user_name': user.name,
|
||||
'start_time': format_date_with_ordinal(start_time, '%#H:%M %B %dth %Y'),
|
||||
'start_time_date': start_time,
|
||||
'start_time_ago': humanize.naturaltime(start_time),
|
||||
'duration': format_duration(duration),
|
||||
'duration_minutes': duration.total_seconds() / 60,
|
||||
'average_rpm': int(average_rpm),
|
||||
|
||||
Reference in New Issue
Block a user