From b1bd6fcc79c5c8a6ea45044fb26e3706ecf6a648 Mon Sep 17 00:00:00 2001 From: Virginia Dooley Date: Sat, 11 May 2024 20:55:39 +0100 Subject: [PATCH] Check if joint-party needs to be edited --- wcivf/apps/ppc_2024/management/commands/import_2024_ppcs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcivf/apps/ppc_2024/management/commands/import_2024_ppcs.py b/wcivf/apps/ppc_2024/management/commands/import_2024_ppcs.py index 42eb7d6c3..df5c153bd 100644 --- a/wcivf/apps/ppc_2024/management/commands/import_2024_ppcs.py +++ b/wcivf/apps/ppc_2024/management/commands/import_2024_ppcs.py @@ -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}"