Start refactoring person overview (list) page, currently is accessible through tags and workout exercise select. Doesnt have any stats or graphs
This commit is contained in:
3
db.py
3
db.py
@@ -9,6 +9,7 @@ from flask import g
|
||||
import pandas as pd
|
||||
from features.calendar import Calendar
|
||||
from features.exercises import Exercises
|
||||
from features.person_overview import PersonOverview
|
||||
from features.stats import Stats
|
||||
from features.workout import Workout
|
||||
from features.sql_explorer import SQLExplorer
|
||||
@@ -22,6 +23,7 @@ class DataBase():
|
||||
self.workout = Workout(self.execute)
|
||||
self.exercises = Exercises(self.execute)
|
||||
self.sql_explorer = SQLExplorer(self.execute)
|
||||
self.person_overview = PersonOverview(self.execute)
|
||||
db_url = urlparse(os.environ['DATABASE_URL'])
|
||||
# if db_url is null then throw error
|
||||
if not db_url:
|
||||
@@ -577,7 +579,6 @@ class DataBase():
|
||||
# Convert to a list for the final output
|
||||
workout_notes_list = list(workout_notes.values())
|
||||
return person_name, workout_notes_list
|
||||
|
||||
|
||||
def get_exercise_earliest_and_latest_dates(self, person_id, exercise_id):
|
||||
sql_query = """
|
||||
|
||||
Reference in New Issue
Block a user