Skip to content

Commit

Permalink
feat: add CANCELLED events
Browse files Browse the repository at this point in the history
  • Loading branch information
tbmc committed Apr 18, 2024
1 parent cf9745f commit 2372a0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Github Container Pulls](https://img.shields.io/badge/Github%20Container%20Pulls-680-blue
[![Github Container Pulls](https://img.shields.io/badge/Github%20Container%20Pulls-780-blue
)](https://github.com/tbmc/sporteasy-calendar-connector/pkgs/container/sporteasy-calendar-connector)
[![Docker Pulls](https://img.shields.io/docker/pulls/tbmc/sporteasy-calendar-connector)](https://hub.docker.com/r/tbmc/sporteasy-calendar-connector)

Expand Down
2 changes: 2 additions & 0 deletions utils/calendar_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def _extract_event_summary(event_data: EVENT_TYPE, event: Event, team_name: str)
summary = f"{team_name} - {name}"
else:
summary = name
if "is_cancelled" in event_data and event_data["is_cancelled"]:
summary = f"CANCELLED | {summary}"

# opponent_right = cast(dict[str, int | str | None] | None, event_data["opponent_right"])
# opponent_left = cast(dict[str, int | str | None] | None, event_data["opponent_left"])
Expand Down

0 comments on commit 2372a0a

Please sign in to comment.