Skip to content

Commit 8b82b2a

Browse files
committed
Add "Remote Sponsor" ticket type
1 parent e6266f7 commit 8b82b2a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/europython_discord/program_notifications/cog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def __init__(self, bot: Client, config: ProgramNotificationsConfig) -> None:
3232

3333
@commands.Cog.listener()
3434
async def on_ready(self) -> None:
35+
await self.livestream_connector.fetch_livestreams()
3536
if self.config.simulated_start_time:
3637
_logger.info("Running in simulated time mode.")
3738
_logger.info("Will purge all room channels to avoid pile-up of test notifications.")

src/europython_discord/program_notifications/livestream_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ async def fetch_livestreams(self) -> None:
4949
async with self._fetch_lock:
5050
livestreams_raw = await self._open_livestreams_file()
5151
self.livestreams_by_room = await self._parse_livestreams(livestreams_raw)
52+
logger.info("Fetched %s", self.livestreams_by_room)
5253

5354
async def get_livestream_url(self, room: str, day: date) -> str | None:
5455
"""
@@ -62,7 +63,6 @@ async def get_livestream_url(self, room: str, day: date) -> str | None:
6263
if not self.livestreams_by_room:
6364
await self.fetch_livestreams()
6465

65-
logger.info(str(self.livestreams_by_room))
6666
if room not in self.livestreams_by_room:
6767
logger.warning(f"Found no livestream URLs for room {room!r}")
6868
return None

0 commit comments

Comments
 (0)