Skip to content

Commit

Permalink
upgrade server code
Browse files Browse the repository at this point in the history
  • Loading branch information
EiffL committed Sep 2, 2023
1 parent f5bdf29 commit 4b17531
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions registration_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ def registered():

if args.create:
print("Creating database table if doesn't exist")
db.create_all()

with app.app_context():
db.create_all()

if args.dump:
print("Printing content of database.")
for p in Participant.query.all():
Expand Down

0 comments on commit 4b17531

Please sign in to comment.