From 066b9348dd71e535669677165f0eb5ef47b919a2 Mon Sep 17 00:00:00 2001 From: Paul Philion Date: Fri, 5 Apr 2024 14:26:00 -0700 Subject: [PATCH] fixing type in method name (shakes fist at weak typing) --- netbot.py | 4 ++-- tickets.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/netbot.py b/netbot.py index b0fc177..c97af04 100755 --- a/netbot.py +++ b/netbot.py @@ -89,7 +89,7 @@ async def on_ready(self): self.sync_all_threads.start() # pylint: disable=no-member # start the expriation checker - self.check_expired_tickets.start() # pylint: disable=no-member + ### FIXME self.check_expired_tickets.start() # pylint: disable=no-member log.debug(f"Initialized with {self.redmine}") @@ -335,7 +335,7 @@ def expire_expired_tickets(self): @commands.slash_command(name="notify", description="Force ticket notifications") async def force_notify(self, ctx: discord.ApplicationContext): log.debug(ctx) - await self.notify_expiring_tickets() + await self.check_expired_tickets() @tasks.loop(hours=24) diff --git a/tickets.py b/tickets.py index 760c845..e3c2140 100644 --- a/tickets.py +++ b/tickets.py @@ -228,7 +228,6 @@ def expire(self, ticket:Ticket): fields = { "assigned_to_id": INTAKE_TEAM_ID, "status_id": "1", # New - #"due_date": "", # empty? FOR NOW "notes": f"Ticket automatically expired after {TICKET_MAX_AGE} days due to inactivity.", } self.update(ticket.id, fields)