Create seperate page view for workout (WIP)

This commit is contained in:
Peter Stockings
2024-11-02 23:09:26 +11:00
parent 1384eb007b
commit 817a6016e2
4 changed files with 193 additions and 0 deletions

2
db.py
View File

@@ -8,6 +8,7 @@ from urllib.parse import urlparse
from flask import g
from features.calendar import Calendar
from features.stats import Stats
from features.workout import Workout
from utils import count_prs_over_time, get_all_exercises_from_topsets, get_exercise_graph_model, get_stats_from_topsets, get_topsets_for_person, get_weekly_pr_graph_model, get_workout_counts, get_workouts
@@ -15,6 +16,7 @@ class DataBase():
def __init__(self, app):
self.calendar = Calendar(self.execute)
self.stats = Stats(self.execute)
self.workout = Workout(self.execute)
db_url = urlparse(os.environ['DATABASE_URL'])
# if db_url is null then throw error
if not db_url: