]> WPIA git - motion.git/commitdiff
fix: schema.sql contains the current schema
authorFelix Dörre <felix@dogcraft.de>
Sun, 23 Dec 2018 23:20:25 +0000 (00:20 +0100)
committerFelix Dörre <felix@dogcraft.de>
Mon, 24 Dec 2018 00:27:45 +0000 (01:27 +0100)
motion.py

index 08dd458ee45f10b0dcb314cc6fd83ab13d6acafa..ee1c3a8a86abcff5ca30d5916584724c6799c8d6 100644 (file)
--- a/motion.py
+++ b/motion.py
@@ -88,6 +88,7 @@ def init_db():
         if ver < 1:
             with app.open_resource('sql/schema.sql', mode='r') as f:
                 db.execute(f.read())
+            return
 
         if ver < 2:
             with app.open_resource('sql/from_1.sql', mode='r') as f: