Generate ERD diagram from schema at build time rather then dynamically to reduce dependency on mermaid js library in the frontend
This commit is contained in:
2
db.py
2
db.py
@@ -10,6 +10,7 @@ from features.people_graphs import PeopleGraphs
|
||||
from features.person_overview import PersonOverview
|
||||
from features.stats import Stats
|
||||
from features.dashboard import Dashboard
|
||||
from features.schema import Schema
|
||||
from utils import get_exercise_graph_model
|
||||
|
||||
|
||||
@@ -20,6 +21,7 @@ class DataBase():
|
||||
self.person_overview = PersonOverview(self.execute)
|
||||
self.people_graphs = PeopleGraphs(self.execute)
|
||||
self.dashboard = Dashboard(self.execute)
|
||||
self.schema = Schema(self.execute)
|
||||
|
||||
db_url = urlparse(os.environ['DATABASE_URL'])
|
||||
# if db_url is null then throw error
|
||||
|
||||
Reference in New Issue
Block a user