fix some stuff with new API
This commit is contained in:
parent
f6e1dd92d5
commit
21d43b1e64
1 changed files with 5 additions and 5 deletions
|
|
@ -133,7 +133,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
threads = self.browser.get_threads_list()
|
threads = self.browser.get_threads_list()
|
||||||
|
|
||||||
for thread in threads:
|
for thread in threads:
|
||||||
if thread['member'].get('isBan', True):
|
if thread['member'].get('isBan', False):
|
||||||
with self.browser:
|
with self.browser:
|
||||||
self.browser.delete_thread(thread['member']['id'])
|
self.browser.delete_thread(thread['member']['id'])
|
||||||
continue
|
continue
|
||||||
|
|
@ -206,8 +206,8 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
flags |= Message.IS_ACCUSED
|
flags |= Message.IS_ACCUSED
|
||||||
|
|
||||||
signature = u''
|
signature = u''
|
||||||
if mail['src']:
|
#if mail['src']:
|
||||||
signature += u'Sent from my %s\n\n' % mail['src']
|
# signature += u'Sent from my %s\n\n' % mail['src']
|
||||||
if mail['id_from'] in contacts:
|
if mail['id_from'] in contacts:
|
||||||
signature += contacts[mail['id_from']].get_text()
|
signature += contacts[mail['id_from']].get_text()
|
||||||
|
|
||||||
|
|
@ -245,7 +245,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
with self.browser:
|
with self.browser:
|
||||||
threads = self.browser.get_threads_list()
|
threads = self.browser.get_threads_list()
|
||||||
for thread in threads:
|
for thread in threads:
|
||||||
if thread['member'].get('isBan', True):
|
if thread['member'].get('isBan', False):
|
||||||
with self.browser:
|
with self.browser:
|
||||||
self.browser.delete_thread(int(thread['member']['id']))
|
self.browser.delete_thread(int(thread['member']['id']))
|
||||||
continue
|
continue
|
||||||
|
|
@ -382,7 +382,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
return contact
|
return contact
|
||||||
|
|
||||||
def _get_partial_contact(self, contact):
|
def _get_partial_contact(self, contact):
|
||||||
if contact.get('isBan', True):
|
if contact.get('isBan', False):
|
||||||
with self.browser:
|
with self.browser:
|
||||||
self.browser.delete_thread(int(contact['id']))
|
self.browser.delete_thread(int(contact['id']))
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue