From 4f0f05a0d838f15714aacb56a773fb3545a477ad Mon Sep 17 00:00:00 2001 From: Lucio Baglione Date: Thu, 23 May 2024 12:59:45 +0200 Subject: [PATCH] fix: Update F12 fields for Ideascale reviews manager | NPG-0000 --- .../reviews_manager/processing/types/models.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utilities/ideascale-importer/ideascale_importer/reviews_manager/processing/types/models.py b/utilities/ideascale-importer/ideascale_importer/reviews_manager/processing/types/models.py index 6829d95446..f63305bb77 100644 --- a/utilities/ideascale-importer/ideascale_importer/reviews_manager/processing/types/models.py +++ b/utilities/ideascale-importer/ideascale_importer/reviews_manager/processing/types/models.py @@ -275,17 +275,17 @@ class IdeascaleComRev(Model): @classmethod def parse_custom_fields(cls, values): """Parse custom fields into fields.""" - if "would you like to participate as a reviewer in fund11 community review stage?" in values["profile_questions"]: + if "would you like to participate as a reviewer in fund12 community review stage?" in values["profile_questions"]: values["subscribed"] = ( - values["profile_questions"]["would you like to participate as a reviewer in fund11 community review stage?"] + values["profile_questions"]["would you like to participate as a reviewer in fund12 community review stage?"] == "Yes, I want to be a Community Reviewer and I also understand the role." ) else: values["subscribed"] = False - if "rewards address" in values["profile_questions"]: - values["rewards_address"] = values["profile_questions"]["rewards address"] - if "f11 preferred challenges" in values["profile_questions"]: - pf = values["profile_questions"]["f11 preferred challenges"].strip() + if "f12 rewards address" in values["profile_questions"]: + values["rewards_address"] = values["profile_questions"]["f12 rewards address"] + if "f12 preferred categories" in values["profile_questions"]: + pf = values["profile_questions"]["f12 preferred categories"].strip() if pf == "": values["preferred_challenges"] = [] else: