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:
Peter Stockings
2023-10-13 15:33:14 +11:00
parent c18beba563
commit 861d83f828
5 changed files with 336 additions and 50 deletions

2
app.py
View File

@@ -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),