From 99f6e921ee5023a065852aef470a96ee1a1d1952 Mon Sep 17 00:00:00 2001 From: karthikmurakonda Date: Sat, 9 Sep 2023 01:19:17 +0530 Subject: [PATCH] introduced open tier --- CDC_Backend/APIs/constants.py | 1 + CDC_Backend/APIs/utils.py | 2 ++ 2 files changed, 3 insertions(+) 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