Skip to content

Commit

Permalink
tasks bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Dec 1, 2024
1 parent 307d35c commit 24a5523
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 @@ -127,7 +127,7 @@ def get_data(self, force=False):
else:
r = request_with_cache(url)

if r.status == 200 or r.status == 302:
if r.status_code == 200 or r.status_code == 302:
result = r.json()
else:
print("Cold not update!")
Expand Down

0 comments on commit 24a5523

Please sign in to comment.