Update when even is emitted

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Petr Kalis 2025-08-21 11:35:13 +02:00 committed by GitHub
parent 60e6d4df2f
commit bab05592bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -363,10 +363,15 @@ class PushToContextController:
)
def _submit_callback(self):
for process_item_id in self._process_item_ids:
process_item_ids = self._process_item_ids
for process_item_id in process_item_ids:
self._integrate_model.integrate_item(process_item_id)
self._emit_event("submit.finished", {})
if process_item_ids is self._process_item_ids:
self._process_item_ids = []
def _emit_event(self, topic, data=None):
if data is None:
data = {}