kivy_helper_search fixes
This commit is contained in:
parent
ccc21b33b0
commit
6c9d1a2666
|
@ -1,6 +1,5 @@
|
||||||
"""
|
"""
|
||||||
src/bitmessagekivy/kivy_helper_search.py
|
Sql queries for bitmessagekivy
|
||||||
=================================
|
|
||||||
"""
|
"""
|
||||||
from helper_sql import sqlQuery
|
from helper_sql import sqlQuery
|
||||||
|
|
||||||
|
@ -14,14 +13,15 @@ def search_sql(xAddress="toaddress", account=None, folder="inbox", where=None, w
|
||||||
what = None
|
what = None
|
||||||
|
|
||||||
if folder == "sent" or folder == "draft":
|
if folder == "sent" or folder == "draft":
|
||||||
sqlStatementBase = '''
|
sqlStatementBase = (
|
||||||
SELECT toaddress, fromaddress, subject, message, status, ackdata, lastactiontime
|
'''SELECT toaddress, fromaddress, subject, message, status, ackdata,'''
|
||||||
FROM sent '''
|
''' lastactiontime FROM sent ''')
|
||||||
elif folder == "addressbook":
|
elif folder == "addressbook":
|
||||||
sqlStatementBase = '''SELECT label, address From addressbook '''
|
sqlStatementBase = '''SELECT label, address From addressbook '''
|
||||||
else:
|
else:
|
||||||
sqlStatementBase = '''SELECT folder, msgid, toaddress, message, fromaddress, subject, received, read
|
sqlStatementBase = (
|
||||||
FROM inbox '''
|
'''SELECT folder, msgid, toaddress, message, fromaddress, subject,'''
|
||||||
|
''' received, read FROM inbox ''')
|
||||||
|
|
||||||
sqlStatementParts = []
|
sqlStatementParts = []
|
||||||
sqlArguments = []
|
sqlArguments = []
|
||||||
|
|
Reference in New Issue
Block a user