mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
bugfics
This commit is contained in:
parent
b353883b07
commit
145966c3b1
1 changed files with 5 additions and 4 deletions
|
@ -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:
|
||||
session = Session()
|
||||
# Generate the database if it's empty
|
||||
if session.query(User).first() is None:
|
||||
init_royal_db()
|
||||
del session
|
Loading…
Reference in a new issue