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

Commit

Permalink
add cyp fund type config
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-W1 committed Oct 18, 2023
1 parent c364203 commit c689b34
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit c689b34

Please sign in to comment.