Skip to content

Commit

Permalink
fixing type in method name (shakes fist at weak typing)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Philion committed Apr 5, 2024
1 parent d71821b commit 68af3c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def __init__(self, client: redmine.Client):
self.ticket_locks = {}

self.formatter = DiscordFormatter(client.url)
self.trackers: dict[str,NamedId] = {}

self.redmine = client
#guilds = os.getenv('DISCORD_GUILDS').split(', ')
Expand Down Expand Up @@ -303,7 +304,7 @@ async def expiration_notification(self, ticket: Ticket) -> None:
channel_name = _TRACKER_MAPPING[str(ticket.tracker)]
channel = self.get_channel_by_name(channel_name)
if channel:
channel.send(self.formatter.format_expiring_alert(ticket))
channel.send(self.formatter.format_expiration_notification(ticket))
return
else:
log.warning(f"Expiring ticket #{ticket.id} on unknown channel: {channel_name}")
Expand Down

0 comments on commit 68af3c1

Please sign in to comment.