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):
|
||||
if isinstance(_id, Thread):
|
||||
thread = _id
|
||||
_id = thread.id
|
||||
id = thread.id
|
||||
else:
|
||||
thread = None
|
||||
id = _id
|
||||
|
||||
with self.browser:
|
||||
content = self.browser.get_content(_id)
|
||||
content = self.browser.get_content(id)
|
||||
|
||||
if content is None:
|
||||
return None
|
||||
|
||||
if not thread:
|
||||
thread = Thread(_id)
|
||||
thread = Thread(id)
|
||||
|
||||
flags = Message.IS_HTML
|
||||
if not thread.id in self.storage.get('seen', default={}):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue