Skip to content
Snippets Groups Projects
Commit 22669967 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Forgotten sequence insted of value in query/execute call (thanks to Tomas Cejka)

parent b014ac43
No related branches found
No related tags found
No related merge requests found
......@@ -713,7 +713,7 @@ class MySQL(ObjectReq):
def getLastReceivedId(self, client):
row = self.query("SELECT event_id as id FROM last_events WHERE client_id = %s ORDER BY last_events.id DESC LIMIT 1", client.id)[0]
row = self.query("SELECT event_id as id FROM last_events WHERE client_id = %s ORDER BY last_events.id DESC LIMIT 1", (client.id,))[0]
id = row['id'] if row is not None else 0
logging.debug("getLastReceivedId: id %i for client %i(%s)" % (id, client.id, client.hostname))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment