Commit f866c0eb authored by David Trattnig's avatar David Trattnig
Browse files

Removing timeslot from session on event.

parent 6db50ab2
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment