Skip to content

Commit

Permalink
celeray task
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Sep 15, 2024
1 parent 83617e6 commit 4fdeef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion say/crawler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_data(self, need_id, force=False):

# fresh products have different api / Digikala redirect to new link for fresh product
# Typical respond: {'status': 302, 'redirect_url': {'base': None, 'uri': '/fresh/product/dkp-10269403/'}}
result = r.json
result = r.json()
print(result)
if result["status"] == 302 and "fresh" in result["redirect_url"]["uri"]:
url = self.API_URL_FRESH % self.dkp
Expand Down

0 comments on commit 4fdeef6

Please sign in to comment.