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 f2eba4c commit 4e55eff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion say/tasks/update_needs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ def update_needs(self):
t = []
for need in needs:
t.append(need.id)
update_need.delay(need.id)
if "Protein" in need.name_translations['en'] or "Dairy" in need.name_translations['en']:
print("Fresh Products")
update_need.delay(need.id, True)
else:
print("Not Fresh Products")
update_need.delay(need.id, False)

return t

Expand Down

0 comments on commit 4e55eff

Please sign in to comment.