From bd00cddc2b8f5b94d6c32781aebaa8b28393a4ad Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 10 2021 07:51:03 +0000 Subject: protonmsg: drop bad key reference This is a relic of an earlier version of the db work. At this point in the code, there is never an id field. We don't re-store messages from the db. We only delete them after confirmed send. --- diff --git a/plugins/hub/protonmsg.py b/plugins/hub/protonmsg.py index 27df6d0..a7ed023 100644 --- a/plugins/hub/protonmsg.py +++ b/plugins/hub/protonmsg.py @@ -327,9 +327,6 @@ def store_to_db(msgs): props = json.dumps(msg['props']) insert = InsertProcessor(table='proton_queue') insert.set(address=address, props=props, body=body) - if 'id' in msg: - # if we've something from db, we should store it in correct order - insert.set(id=msg['db_id']) insert.execute() c.execute('COMMIT')