chore(): minor fixes around codebase

This commit is contained in:
ITQ
2026-02-24 10:35:25 +03:00
parent 16b48fee40
commit 50941c1321
12 changed files with 62 additions and 33 deletions
+5 -3
View File
@@ -132,7 +132,8 @@ def _process_exposure_event(
)
decision = decision_get(decision_id)
if decision:
has_decision = decision is not None
if has_decision:
with suppress(ConflictError):
Exposure.objects.create(
decision_id=decision_id,
@@ -149,10 +150,11 @@ def _process_exposure_event(
subject_id=subject_id,
timestamp=timestamp,
properties=event_data.get("properties", {}),
is_attributed=True,
is_attributed=has_decision,
)
_promote_pending_events(decision_id)
if has_decision:
_promote_pending_events(decision_id)
def _promote_pending_events(decision_id: str) -> None: