From 6473785c99651c5d6f0c13f5a99915d936ab59a9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 22 Mar 2017 17:23:39 +0100 Subject: [PATCH] If run standalone, generate the default database --- database.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/database.py b/database.py index fc0c0053..28d2fc41 100644 --- a/database.py +++ b/database.py @@ -109,4 +109,7 @@ def init_royal_db(): create_user("fedececco", "ventuno", True) create_user("albertwerk", "ventidue", True) create_user("voltaggio", "ventitre", True) - create_user("doc", "ventiquattro", True) \ No newline at end of file + create_user("doc", "ventiquattro", True) + +if __name__ == "__main__": + init_royal_db() \ No newline at end of file