fixing naming
This commit is contained in:
parent
07a49badda
commit
53a63877a1
2 changed files with 4 additions and 4 deletions
6
app.py
6
app.py
|
@ -27,7 +27,7 @@ class App:
|
||||||
self.scheduler.init_app(self.app)
|
self.scheduler.init_app(self.app)
|
||||||
self.scheduler.start()
|
self.scheduler.start()
|
||||||
# Schedule the job
|
# 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):
|
def set_config(self):
|
||||||
|
@ -63,9 +63,9 @@ class App:
|
||||||
def SchadulerConfig(object):
|
def SchadulerConfig(object):
|
||||||
SCHEDULER_API_ENABLED = True
|
SCHEDULER_API_ENABLED = True
|
||||||
|
|
||||||
def locate_upcoming_events(self):
|
def notifyUpcommingEvents(self):
|
||||||
with self.app.app_context():
|
with self.app.app_context():
|
||||||
print(EventNotifyerService.locate_upcoming_events())
|
EventNotifyerService.notifyUpcommingEvents()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
with self.app.app_context():
|
with self.app.app_context():
|
||||||
|
|
|
@ -6,5 +6,5 @@ class EventNotifyerService:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def locate_upcoming_events():
|
def notifyUpcommingEvents():
|
||||||
return EventService.get_all_upcomming_events()
|
return EventService.get_all_upcomming_events()
|
Loading…
Reference in a new issue