We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4745623 commit d8fb1a2Copy full SHA for d8fb1a2
1 file changed
backend/application/import_observations/services/import_observations.py
@@ -735,6 +735,10 @@ def _resolve_unimported_observations(
735
# and seem to have been resolved.
736
observations_resolved: set[Observation] = set()
737
for observation in observations_before.values():
738
+ old_status = observation.current_status
739
+
740
+ observation.parser_status = Status.STATUS_RESOLVED
741
+ observation.save()
742
743
# Check if this observation log entry already exists
744
if Observation_Log.objects.filter(
@@ -743,7 +747,6 @@ def _resolve_unimported_observations(
747
).exists():
748
continue
745
749
746
- old_status = observation.current_status
750
new_status = get_current_status(observation)
751
if old_status != new_status:
752
if old_status in Status.STATUS_ACTIVE:
0 commit comments