diff --git a/database.py b/database.py index 1034427d..8815225a 100644 --- a/database.py +++ b/database.py @@ -115,7 +115,8 @@ def init_royal_db(): create_user("voltaggio", "ventitre", True) create_user("doc", "ventiquattro", True) -with Session() as session: - # Generate the database if it's empty - if session.query(User).first() is None: - init_royal_db() +session = Session() +# Generate the database if it's empty +if session.query(User).first() is None: + init_royal_db() +del session \ No newline at end of file