summaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rwxr-xr-xapp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.py b/app.py
index 410ad0d..955d1a8 100755
--- a/app.py
+++ b/app.py
@@ -14,10 +14,10 @@ DATABASE = 'db.sqlite3'
cache = SimpleCache()
-def init_db():
- if not os.path.isfile(DATABASE):
- init_db()
+if not os.path.isfile(DATABASE):
+ init_db()
+def init_db():
with app.app_context():
db = get_db()
with app.open_resource('schema.sql', mode='r') as f: