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 54f8a71 commit a03ad60
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions say/api/need_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,12 @@ def patch(self, need_id):

if 'link' in request.form.keys():
new_link = request.form['link']
if new_link != need.link:
from say.tasks import update_need
from say.tasks import update_need

need.link = new_link
session.flush()
update_need.delay(need.id)
need.link = new_link
session.flush()
update_need.delay(need.id)


if 'affiliateLinkUrl' in request.form.keys():
need.affiliateLinkUrl = request.form['affiliateLinkUrl']
Expand Down

0 comments on commit a03ad60

Please sign in to comment.