small fix
This commit is contained in:
parent
5c3f42fd35
commit
a7cd8ceca4
1 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ def connect_sqlite():
|
||||||
def init_db():
|
def init_db():
|
||||||
# Initialisation de la base SQLite
|
# Initialisation de la base SQLite
|
||||||
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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue