dépôts
/
cavote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added constraints in DB
[cavote.git]
/
main.py
diff --git
a/main.py
b/main.py
index
3937dfb
..
7cd53f3
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-33,6
+33,7
@@
def connect_db():
@app.before_request
def before_request():
g.db = connect_db()
+ g.db.execute("PRAGMA foreign_keys = ON")
@app.teardown_request
def teardown_request(exception):