Skip to content

Commit

Permalink
fix: Update F12 fields for Ideascale reviews manager | NPG-0000
Browse files Browse the repository at this point in the history
  • Loading branch information
coire1 committed May 23, 2024
1 parent 812b2cc commit 4f0f05a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4f0f05a

Please sign in to comment.