chore(): minor fixes around codebase
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user