Increase readability of "id" variable
This commit is contained in:
parent
1de793307e
commit
4a6107615d
1 changed files with 4 additions and 3 deletions
|
|
@ -43,18 +43,19 @@ class GenericNewspaperBackend(BaseBackend, ICapMessages):
|
||||||
def get_thread(self, _id):
|
def get_thread(self, _id):
|
||||||
if isinstance(_id, Thread):
|
if isinstance(_id, Thread):
|
||||||
thread = _id
|
thread = _id
|
||||||
_id = thread.id
|
id = thread.id
|
||||||
else:
|
else:
|
||||||
thread = None
|
thread = None
|
||||||
|
id = _id
|
||||||
|
|
||||||
with self.browser:
|
with self.browser:
|
||||||
content = self.browser.get_content(_id)
|
content = self.browser.get_content(id)
|
||||||
|
|
||||||
if content is None:
|
if content is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if not thread:
|
if not thread:
|
||||||
thread = Thread(_id)
|
thread = Thread(id)
|
||||||
|
|
||||||
flags = Message.IS_HTML
|
flags = Message.IS_HTML
|
||||||
if not thread.id in self.storage.get('seen', default={}):
|
if not thread.id in self.storage.get('seen', default={}):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue