I cannot execute UPDATE statements in my Flask App deployed to Azure App Service (Linux). It says:
Database is Locked.
SELECT statements are executed as expected. On the local machine work UPDATE statements as expected.
I have tried to change the isolation_level (DEFERRED, EXCLUSIVE, IMMEDIATE). I have also tried to CHMOD on the data folder but that looks right.
with sql.connect(connstring) as con:
cur = con.cursor()
cur.execute("Update INNOVATIONPOWER_MESSAGES SET innovative = 0 WHERE id = 21187")
con.commit()