Commit a1e2041e authored by Philipp Hörist's avatar Philipp Hörist

Logger: Pass args in correct order

parent 3e020ef4
......@@ -1473,7 +1473,7 @@ class Logger:
self._con.execute(sql, (jid, sha))
except sqlite.IntegrityError:
sql = 'UPDATE muc_avatars SET avatar_sha = ? WHERE jid = ?'
self._con.execute(sql, (jid, sha))
self._con.execute(sql, (sha, jid))
self._timeout_commit()
......
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