From 390be588dad9af200f490652f99d5b15b5e01f64 Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Mon, 13 Jan 2025 15:46:26 +0000 Subject: [PATCH] FIX: Fix setting attributes for question event --- octue/cloud/pub_sub/service.py | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/octue/cloud/pub_sub/service.py b/octue/cloud/pub_sub/service.py index e0fa1ff72..65ea50ba3 100644 --- a/octue/cloud/pub_sub/service.py +++ b/octue/cloud/pub_sub/service.py @@ -537,18 +537,16 @@ def _emit_event( """ attributes = attributes or {} - attributes.update( - make_attributes( - question_uuid=question_uuid, - parent_question_uuid=parent_question_uuid, - originator_question_uuid=originator_question_uuid, - parent=parent, - originator=originator, - sender=self.id, - sender_type=attributes["sender_type"], - recipient=recipient, - retry_count=retry_count, - ) + attributes = make_attributes( + question_uuid=question_uuid, + parent_question_uuid=parent_question_uuid, + originator_question_uuid=originator_question_uuid, + parent=parent, + originator=originator, + sender=self.id, + recipient=recipient, + retry_count=retry_count, + **attributes, ) converted_attributes = {}