Merge pull request #144 from CDC-IITDH/gowtham/check-ppo-tier

Checking PPO tier in Placement Rules
This commit is contained in:
karthik mv 2022-10-08 13:54:29 +05:30 committed by GitHub
commit d9939885fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -184,6 +184,10 @@ def PlacementApplicationConditions(student, placement):
if int(i.placement.tier) < int(placement.tier): if int(i.placement.tier) < int(placement.tier):
return False, "Can't apply for this tier" return False, "Can't apply for this tier"
for i in PPO:
if int(i.placement.tier) < int(placement.tier):
return False, "Can't apply for this tier"
if student.degree != 'bTech' and not placement.rs_eligible: if student.degree != 'bTech' and not placement.rs_eligible:
raise PermissionError("Can't apply for this placement") raise PermissionError("Can't apply for this placement")