From 53a63877a1b2e3f5ee53249a3f5db9ca5d5fcef0 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Tue, 9 Jan 2024 10:25:38 +0200 Subject: [PATCH] fixing naming --- app.py | 6 +++--- services/EventNotifyerService.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 18b869d..1bd76c5 100644 --- a/app.py +++ b/app.py @@ -27,7 +27,7 @@ class App: self.scheduler.init_app(self.app) self.scheduler.start() # Schedule the job - self.scheduler.add_job(id='locate_upcoming_events', func=self.locate_upcoming_events, trigger='interval', seconds=1) + self.scheduler.add_job(id='notifyUpcommingEvents', func=self.notifyUpcommingEvents, trigger='interval', seconds=1) def set_config(self): @@ -63,9 +63,9 @@ class App: def SchadulerConfig(object): SCHEDULER_API_ENABLED = True - def locate_upcoming_events(self): + def notifyUpcommingEvents(self): with self.app.app_context(): - print(EventNotifyerService.locate_upcoming_events()) + EventNotifyerService.notifyUpcommingEvents() def run(self): with self.app.app_context(): diff --git a/services/EventNotifyerService.py b/services/EventNotifyerService.py index e2922a2..4aa5d38 100644 --- a/services/EventNotifyerService.py +++ b/services/EventNotifyerService.py @@ -6,5 +6,5 @@ class EventNotifyerService: def __init__(self): pass - def locate_upcoming_events(): + def notifyUpcommingEvents(): return EventService.get_all_upcomming_events() \ No newline at end of file