Logger: only search if ids are available
This commit is contained in:
parent
47f4838c7c
commit
35d2beae74
|
@ -1098,6 +1098,9 @@ class Logger:
|
||||||
if origin_id is not None:
|
if origin_id is not None:
|
||||||
ids.append(origin_id)
|
ids.append(origin_id)
|
||||||
|
|
||||||
|
if not ids:
|
||||||
|
return False
|
||||||
|
|
||||||
sql = '''
|
sql = '''
|
||||||
SELECT stanza_id FROM logs
|
SELECT stanza_id FROM logs
|
||||||
WHERE stanza_id IN ({values}) LIMIT 1
|
WHERE stanza_id IN ({values}) LIMIT 1
|
||||||
|
|
Loading…
Reference in New Issue