idem
This commit is contained in:
parent
a7cd8ceca4
commit
afe659cf51
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ def init_db():
|
||||||
with closing(connect_sqlite()) as con_sqlite:
|
with closing(connect_sqlite()) as con_sqlite:
|
||||||
with app.open_resource('schema.sql') as f:
|
with app.open_resource('schema.sql') as f:
|
||||||
con_sqlite.cursor().executescript(f.read().decode("utf-8"))
|
con_sqlite.cursor().executescript(f.read().decode("utf-8"))
|
||||||
con_sqlite.commit()
|
con_sqlite.commit()
|
||||||
|
|
||||||
# Connexion à la base SQLite locale
|
# Connexion à la base SQLite locale
|
||||||
con_sqlite = connect_sqlite()
|
con_sqlite = connect_sqlite()
|
||||||
|
|
Loading…
Reference in a new issue