exclude kind gcstatus/status rather than ask for rest of statuses
This commit is contained in:
parent
14c7d7f891
commit
dfb9d92619
|
@ -335,12 +335,10 @@ class Logger:
|
||||||
SELECT log_line_id FROM logs
|
SELECT log_line_id FROM logs
|
||||||
WHERE jid_id = %d
|
WHERE jid_id = %d
|
||||||
AND time BETWEEN %d AND %d
|
AND time BETWEEN %d AND %d
|
||||||
AND kind IN (%d, %d, %d, %d, %d)
|
AND kind NOT IN (%d, %d)
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
''' % (jid_id, start_of_day, last_second_of_day,
|
''' % (jid_id, start_of_day, last_second_of_day,
|
||||||
constants.KIND_SINGLE_MSG_RECV, constants.KIND_CHAT_MSG_RECV,
|
constants.KIND_STATUS, constants.KIND_GCSTATUS))
|
||||||
constants.KIND_SINGLE_MSG_SENT, constants.KIND_CHAT_MSG_SENT,
|
|
||||||
constants.KIND_GC_MSG))
|
|
||||||
results = cur.fetchone()
|
results = cur.fetchone()
|
||||||
if results:
|
if results:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue