Skip to content

Commit

Permalink
Fix: Only add new incident officers (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-kelp authored Aug 2, 2023
1 parent 8476365 commit 2cb2f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenOversight/app/main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ def populate_obj(self, form, obj):
except ValueError:
our_id = officer["oo_id"].split('value="')[1][:-2]
of = Officer.query.filter_by(id=int(our_id)).first()
if of:
if of and of not in obj.officers:
obj.officers.append(of)

license_plates = form.data.pop("license_plates")
Expand Down

0 comments on commit 2cb2f36

Please sign in to comment.