Browse Source

helper_inbox pylint fixes

v0.6
lakshyacis 3 years ago
parent
commit
f4c7ac5604
No known key found for this signature in database GPG Key ID: D2C539C8EC63E9EB
  1. 4
      src/helper_inbox.py

4
src/helper_inbox.py

@ -1,7 +1,7 @@
"""Helper Inbox performs inbox messages related operations"""
from helper_sql import sqlExecute, sqlQuery
import queues
from helper_sql import sqlExecute, sqlQuery
def insert(t):
@ -13,11 +13,13 @@ def insert(t):
def trash(msgid):
"""Mark a message in the `inbox` as `trash`"""
sqlExecute('''UPDATE inbox SET folder='trash' WHERE msgid=?''', msgid)
queues.UISignalQueue.put(('removeInboxRowByMsgid', msgid))
def isMessageAlreadyInInbox(sigHash):
"""Check for previous instances of this message"""
queryReturn = sqlQuery(
'''SELECT COUNT(*) FROM inbox WHERE sighash=?''', sigHash)
return queryReturn[0][0] != 0

Loading…
Cancel
Save