diff --git a/CDC_Backend/APIs/constants.py b/CDC_Backend/APIs/constants.py index e683392..2c9269b 100644 --- a/CDC_Backend/APIs/constants.py +++ b/CDC_Backend/APIs/constants.py @@ -38,6 +38,7 @@ TIERS = [ ['5', 'Tier 5'], ['6', 'Tier 6'], ['7', 'Tier 7'], + ['8', 'Open Tier'], ] DEGREE_CHOICES = [ diff --git a/CDC_Backend/APIs/utils.py b/CDC_Backend/APIs/utils.py index 435edb3..cd864d0 100644 --- a/CDC_Backend/APIs/utils.py +++ b/CDC_Backend/APIs/utils.py @@ -253,6 +253,8 @@ def getTier(compensation_gross, is_psu=False): return True, 'psu' if compensation_gross < 0: raise ValueError("Negative Compensation") + elif compensation_gross < 450000: # Open Tier If less than 450,000 + return True, "8" elif compensation_gross < 600000: # Tier 7 If less than 600,000 return True, "7" # Tier 6 If less than 800,000 and greater than or equal to 600,000