From 3ae03b0ac87f1a9740e6345173116c14d3320fc9 Mon Sep 17 00:00:00 2001 From: Mel Miller Date: Sat, 16 Jan 2021 13:46:41 -0500 Subject: [PATCH] Increased verbosity of print output --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 34a2577..fd4d1dc 100644 --- a/app.py +++ b/app.py @@ -53,6 +53,7 @@ def increment_count(db): count.total_reports = count.total_reports + 1 except: print('Count db error') + print(os.path.dirname(os.path.realpath(__file__))) count = Count(count_id = 1, total_reports = 1) db.session.add(count) db.session.commit() @@ -87,6 +88,7 @@ def about(): count = Count.query.get(1) except: print('Count db error.') + print(os.path.dirname(os.path.realpath(__file__))) # db.create_all() # db.session.add(count) # db.session.commit() @@ -110,6 +112,7 @@ def calc(report_id, fight_id): report = Report.query.filter_by(report_id=report_id, fight_id=fight_id).first() except: print('Report db error') + print(os.path.dirname(os.path.realpath(__file__))) db.create_all() report = Report.query.filter_by(report_id=report_id, fight_id=fight_id).first()