Skip to content
Snippets Groups Projects
Commit f866c0eb authored by David Trattnig's avatar David Trattnig
Browse files

Removing timeslot from session on event.

parent 6db50ab2
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ from src.plugins.mailer import AuraMailer
from src.plugins.monitor import AuraMonitor
from src.plugins.trackservice import TrackServiceHandler
from src.scheduling.fallback import FallbackManager
from src.scheduling.models import DB
class EventBinding():
......@@ -303,6 +304,7 @@ class EngineEventDispatcher():
self.logger.debug("on_fallback_active(..)")
self.call_event("on_fallback_active", timeslot, fallback_type)
DB.session.expunge(timeslot)
thread = Thread(target = func, args = (self, timeslot, fallback_type))
thread.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment