Skip to content

Commit

Permalink
remove class method
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebPena committed May 30, 2024
1 parent 8c6be6e commit 3c49f12
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions programs/programs/urgent_needs/urgent_need_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,15 @@ class DenverEmergencyAssistance(UrgentNeedFunction):
county = "Denver County"
fpl_percent = 4

@classmethod
def eligible(cls, screen: Screen):
def eligible(self):
"""
Return True if the household is bellow 400% fpl and lives in Denver
"""
county_eligible = screen.county == cls.county
county_eligible = self.screen.county == self.county
fpl = FederalPoveryLimit.objects.get(year="THIS YEAR").as_dict()
income_eligible = screen.calc_gross_income("yearly", ["all"]) < fpl[screen.household_size] * cls.fpl_percent
income_eligible = (
self.screen.calc_gross_income("yearly", ["all"]) < fpl[self.screen.household_size] * self.fpl_percent
)

return county_eligible and income_eligible

Expand Down

0 comments on commit 3c49f12

Please sign in to comment.