fixing naming

This commit is contained in:
Kfir Dayan 2024-01-09 10:25:38 +02:00
parent 07a49badda
commit 53a63877a1
2 changed files with 4 additions and 4 deletions

6
app.py
View file

@ -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():

View file

@ -6,5 +6,5 @@ class EventNotifyerService:
def __init__(self):
pass
def locate_upcoming_events():
def notifyUpcommingEvents():
return EventService.get_all_upcomming_events()