Skip to content
Snippets Groups Projects
Commit 8c77ec64 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

SLELCT log_line_id instead of message when looking if log line is already in DB, so it's faster

parent 761528f2
No related branches found
No related tags found
No related merge requests found
......@@ -260,7 +260,7 @@ def write(self, kind, jid, message = None, show = None, tim = None, subject = No
contact_name_col = nick
if check_unique: # check for same time, same msg, same jid, same kind
self.cur.execute('''
SELECT message FROM logs
SELECT log_line_id FROM logs
WHERE time = ? AND message = ? AND jid_id = ?
AND kind = ?
''', (time_col, message_col, jid_id, constants.KIND_GC_MSG))
......
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