From 95e300d7cae5036d188ce9acc5bad6c91287dca1 Mon Sep 17 00:00:00 2001 From: surbhi Date: Tue, 4 Sep 2018 18:54:59 +0530 Subject: [PATCH] Fix pylint Too many arguments Issue --- src/bitmessagekivy/mpybit.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index 815acacd..3f9b198b 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/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,