Browse Source

Fix pylint Too many arguments Issue

python3android
surbhi 4 years ago
parent
commit
95e300d7ca
No known key found for this signature in database GPG Key ID: 88928762974D3618
  1. 14
      src/bitmessagekivy/mpybit.py

14
src/bitmessagekivy/mpybit.py

@ -164,14 +164,13 @@ class Inbox(Screen):
def inboxaccounts(self):
"""Load inbox accounts."""
account = state.association
folder = 'inbox'
self.loadMessagelist(account, folder, 'All', '')
self.loadMessagelist(account, 'All', '')
def loadMessagelist(self, account, folder, where="", what="", unreadOnly=False):
def loadMessagelist(self, account, where="", what=""):
"""Load Inbox list for inbox messages."""
xAddress = "toaddress"
queryreturn = kivy_helper_search.search_sql(
xAddress, account, folder, where, what, unreadOnly)
xAddress, account, 'inbox', where, what, False)
if queryreturn:
self.data = [{
'data_index': i,
@ -259,14 +258,13 @@ class Trash(Screen):
def inboxaccounts(self):
"""Load inbox accounts."""
account = state.association
folder = 'trash'
self.loadTrashlist(account, folder, 'All', '')
self.loadTrashlist(account, 'All', '')
def loadTrashlist(self, account, folder, where="", what="", unreadOnly=False):
def loadTrashlist(self, account, where="", what=""):
"""Load Trash list for trashed messages."""
xAddress = "toaddress"
queryreturn = kivy_helper_search.search_sql(
xAddress, account, folder, where, what, unreadOnly)
xAddress, account, 'trash', where, what, False)
if queryreturn:
self.data = [{
'data_index': i,

Loading…
Cancel
Save