Commit 2ebfd389 authored by Alain Takoudjou's avatar Alain Takoudjou

promise check_user_memory: fix 'attempt to write a readonly database'

parent d1426e56
...@@ -30,7 +30,7 @@ def getMemoryInfo(database_path, moment, user): ...@@ -30,7 +30,7 @@ def getMemoryInfo(database_path, moment, user):
time_from_str = "00:00:00" time_from_str = "00:00:00"
escaped_user = escapeSqlStringValue(user) escaped_user = escapeSqlStringValue(user)
memory_info = {} memory_info = {}
database = Database(database_path) database = Database(database_path, create=False, timeout=5)
try: try:
database.connect() database.connect()
result = list(database.select( result = list(database.select(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment