Checking PPO tier in Placement Rules

This commit is contained in:
Gowtham Sai 2022-10-08 13:20:41 +05:30
parent 2f7f76f733
commit ae29e70f5b
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):
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:
raise PermissionError("Can't apply for this placement")