Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fixed improper status check
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Mar 27, 2021
1 parent c572f8f commit 85412b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sushichef.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,14 +1053,14 @@ def get_id(self):
else:
self.x_deki_token = None

self.page_id = None
self.guid = None
query_param = self.soup.find("div", class_="mt-guide-tabs-container")
if query_param is not None:
self.page_id = query_param.attrs.get("data-page-id", "")
query_param = self.soup.find("li", class_="mt-guide-tab")
self.guid = query_param.attrs.get("data-guid", "")
else:
self.page_id = None
self.guid = None
if query_param is not None:
self.guid = query_param.attrs.get("data-guid", "")

def body(self):
if self.page_id is not None and self.guid is not None:
Expand Down

0 comments on commit 85412b1

Please sign in to comment.