1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-24 07:37:04 +00:00

Fixing Z-Push sync errors

This commit is contained in:
Andrés Ortiz 2017-01-27 09:53:39 -06:00
parent 789b5ce485
commit 5734fcdc1b

View File

@ -82,8 +82,8 @@ def is_dcv_address(email):
return True
return False
def open_database(env, with_connection=False):
conn = sqlite3.connect(env["STORAGE_ROOT"] + "/mail/users.sqlite")
def open_database(env, with_connection=False, db_path="/mail/users.sqlite"):
conn = sqlite3.connect(env["STORAGE_ROOT"] + db_path)
if not with_connection:
return conn.cursor()
else: