Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

add cyp fund type config #446

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/blueprints/services/models/fund.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ def from_json(data: dict):
),
)

# TODO: Move this config to database
@property
def fund_types(self) -> set[str]:
if self.short_name == "COF":
return {ALL_VALUE, "allocative"}
elif self.short_name == "NSTF":
return {ALL_VALUE, "allocative"}
elif self.short_name == "CYP":
return {ALL_VALUE, "competitive"}
return {ALL_VALUE}

def add_round(self, fund_round: Round):
Expand Down