diff --git a/modules/aum/backend.py b/modules/aum/backend.py index e27d3e71..a833d027 100644 --- a/modules/aum/backend.py +++ b/modules/aum/backend.py @@ -240,7 +240,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh return thread - def iter_unread_messages(self, thread=None): + def iter_unread_messages(self): try: contacts = {} with self.browser: diff --git a/modules/bnporc/backend.py b/modules/bnporc/backend.py index f771b804..c835b47e 100644 --- a/modules/bnporc/backend.py +++ b/modules/bnporc/backend.py @@ -149,7 +149,7 @@ class BNPorcBackend(BaseBackend, ICapBank, ICapMessages): thread = self.browser.get_thread(thread) return thread - def iter_unread_messages(self, thread=None): + def iter_unread_messages(self): threads = list(self.iter_threads(cache=True)) for thread in threads: if thread.root.flags & thread.root.IS_UNREAD: diff --git a/modules/dlfp/backend.py b/modules/dlfp/backend.py index 16860a6d..0c57014e 100644 --- a/modules/dlfp/backend.py +++ b/modules/dlfp/backend.py @@ -172,7 +172,7 @@ class DLFPBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapContent): for sub in com.comments: self._insert_comment(sub, message, getseen) - def iter_unread_messages(self, thread=None): + def iter_unread_messages(self): for thread in self.iter_threads(): self.fill_thread(thread, 'root', False) for m in thread.iter_all_messages(): diff --git a/modules/hds/backend.py b/modules/hds/backend.py index b59800e5..e0d0d196 100644 --- a/modules/hds/backend.py +++ b/modules/hds/backend.py @@ -88,7 +88,7 @@ class HDSBackend(BaseBackend, ICapMessages): return thread - def iter_unread_messages(self, thread=None): + def iter_unread_messages(self): for thread in self.iter_threads(): if thread.id in self.storage.get('seen', default=[]): continue diff --git a/modules/newsfeed/backend.py b/modules/newsfeed/backend.py index 472b58e8..f6b0350b 100644 --- a/modules/newsfeed/backend.py +++ b/modules/newsfeed/backend.py @@ -76,7 +76,7 @@ class NewsfeedBackend(BaseBackend, ICapMessages): - def iter_unread_messages(self, thread=None): + def iter_unread_messages(self): for thread in self.iter_threads(): for m in thread.iter_all_messages(): if m.flags & m.IS_UNREAD: diff --git a/modules/phpbb/backend.py b/modules/phpbb/backend.py index 7ee40aea..c55c2eb5 100644 --- a/modules/phpbb/backend.py +++ b/modules/phpbb/backend.py @@ -130,7 +130,7 @@ class PhpBBBackend(BaseBackend, ICapMessages, ICapMessagesPost): children=[], flags=Message.IS_HTML) - def iter_unread_messages(self, thread=None): + def iter_unread_messages(self): with self.browser: url = self.browser.get_root_feed_url() for article in Newsfeed(url, rssid).iter_entries(): diff --git a/weboob/capabilities/messages.py b/weboob/capabilities/messages.py index 624d663c..db1e2b7d 100644 --- a/weboob/capabilities/messages.py +++ b/weboob/capabilities/messages.py @@ -140,11 +140,10 @@ class ICapMessages(IBaseCap): """ raise NotImplementedError() - def iter_unread_messages(self, thread=None): + def iter_unread_messages(self): """ Iterates on messages which hasn't been marked as read. - @param thread thread name (optional) @return [iter] Message objects """ raise NotImplementedError() diff --git a/weboob/tools/capabilities/messages/GenericBackend.py b/weboob/tools/capabilities/messages/GenericBackend.py index 5760e1e8..3e8c92d8 100644 --- a/weboob/tools/capabilities/messages/GenericBackend.py +++ b/weboob/tools/capabilities/messages/GenericBackend.py @@ -87,7 +87,7 @@ class GenericNewspaperBackend(BaseBackend, ICapMessages): t = self.get_thread(thread) return t or thread - def iter_unread_messages(self, thread=None): + def iter_unread_messages(self): for thread in self.iter_threads(): if thread.id in self.storage.get('seen', default={}): continue