SLELCT log_line_id instead of message when looking if log line is already in DB, so it's faster
This commit is contained in:
parent
761528f213
commit
8c77ec6433
|
@ -260,7 +260,7 @@ class Logger:
|
|||
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))
|
||||
|
|
Loading…
Reference in New Issue