Skip to content

Commit

Permalink
fix(notification): unanswered filter param
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jul 6, 2023
1 parent 7f15354 commit 6807689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lacommunaute/notification/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def send_notifs_on_unanswered_topics(list_id: int) -> None:
count = Topic.objects.unanswered().filter(forum__in=Forum.objects.public()).count()
link = (
f"{settings.COMMU_PROTOCOL}://{settings.COMMU_FQDN}/"
"?new=1&mtm_campaign=unsanswered&mtm_medium=email#community"
"?filter=NEW&mtm_campaign=unsanswered&mtm_medium=email#community"
)

params = {"count": count, "link": link}
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/notification/tests/tests_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_send_notifs_on_unanswered_topics(self):

url = (
f"{settings.COMMU_PROTOCOL}://{settings.COMMU_FQDN}/"
"?new=1&mtm_campaign=unsanswered&mtm_medium=email#community"
"?filter=NEW&mtm_campaign=unsanswered&mtm_medium=email#community"
)

params = {"count": 1, "link": url}
Expand Down

0 comments on commit 6807689

Please sign in to comment.