Skip to content

Commit

Permalink
Import emblem when just one is found
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Jun 3, 2024
1 parent fe57282 commit 96d8450
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ynr/apps/parties/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ def mark_inactive_emblems(self):
emblem.active = False
emblem.save()

# if the length of the emblem list is 1,
# then we should import the emblem just in case it has change
# but the id has not
if len(ec_emblem_id_list) == 1:
emblem = ECEmblem(self.model, self["PartyEmblems"][0])
emblem.save()

def mark_inactive_descriptions(self):
ec_description_list = []

Expand Down

0 comments on commit 96d8450

Please sign in to comment.