Skip to content

Commit

Permalink
Increased verbosity of print output
Browse files Browse the repository at this point in the history
  • Loading branch information
meldontaragon committed Jan 16, 2021
1 parent 72cad2a commit 3ae03b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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()

Expand Down

0 comments on commit 3ae03b0

Please sign in to comment.