Add blueprint scaffold for timer functions

This commit is contained in:
Peter Stockings
2025-02-16 13:45:34 +11:00
parent 9d48bbd285
commit 699ee50229
6 changed files with 162 additions and 9 deletions

2
db.py
View File

@@ -6,7 +6,7 @@ from urllib.parse import urlparse
from flask import g
class DataBase():
def __init__(self, app):
def __init__(self, app=None):
db_url = urlparse(os.environ['DATABASE_URL'])
# if db_url is null then throw error
if not db_url: