Skip to content

Commit

Permalink
Fix avoiding n notification for cine
Browse files Browse the repository at this point in the history
  • Loading branch information
foucblg committed Dec 2, 2024
1 parent 4fc9444 commit 85e78a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/modules/cinema/endpoints_cinema.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ async def create_session(
action_module="cinema",
)

await scheduler.cancel_job(job_id=f"cinema_weekly_{sunday}")

Check warning on line 152 in app/modules/cinema/endpoints_cinema.py

View check run for this annotation

Codecov / codecov/patch

app/modules/cinema/endpoints_cinema.py#L152

Added line #L152 was not covered by tests

await notification_tool.send_notification_to_topic(
custom_topic=CustomTopic(topic=Topic.cinema),
message=message,
Expand Down

0 comments on commit 85e78a2

Please sign in to comment.