Skip to content

Commit

Permalink
Check if joint-party needs to be edited
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley authored and Virginia Dooley committed May 12, 2024
1 parent 482387f commit b1bd6fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wcivf/apps/ppc_2024/management/commands/import_2024_ppcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def clean_party_id(party_id):
return party_id

if "-" in party_id:
if party_id.startswith("joint-party:"):
return party_id
return f"joint-party:{party_id}"

return f"PP{party_id}"
Expand Down

0 comments on commit b1bd6fc

Please sign in to comment.