Skip to content

Commit

Permalink
Hotfix url in j+30 transaction email. ref #865
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Sep 12, 2023
1 parent 7a24580 commit c7cace2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lemarche/www/tenders/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def send_tenders_author_30_days(tender: Tender, kind="feedback"):
template_id = settings.MAILJET_TENDERS_AUTHOR_TRANSACTIONED_QUESTION_30D_TEMPLATE_ID
user_sesame_query_string = sesame_get_query_string(tender.author) # TODO: sesame scope parameter
answer_url_with_sesame_token = (
reverse("detail-survey-transactioned", args=[tender.slug]) + user_sesame_query_string
reverse("tenders:detail-survey-transactioned", args=[tender.slug]) + user_sesame_query_string
)
variables["ANSWER_YES_URL"] = answer_url_with_sesame_token + "&answer=true"
variables["ANSWER_NO_URL"] = answer_url_with_sesame_token + "&answer=false"
Expand Down

0 comments on commit c7cace2

Please sign in to comment.