Create seperate page view for workout (WIP)
This commit is contained in:
2
db.py
2
db.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user