Merge pull request #192 from CDC-IITDH/fix-eligibility
can apply only to greater tiers
This commit is contained in:
commit
0e65eb4e63
|
@ -250,11 +250,11 @@ def PlacementApplicationConditions(student, placement):
|
||||||
return True, "Conditions Satisfied"
|
return True, "Conditions Satisfied"
|
||||||
|
|
||||||
for i in selected_companies:
|
for i in selected_companies:
|
||||||
if int(i.placement.tier) < int(placement.tier):
|
if int(i.placement.tier) != 1 and 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:
|
for i in PPO:
|
||||||
if int(i.tier) < int(placement.tier):
|
if int(i.tier) != 1 and int(i.tier) <= int(placement.tier):
|
||||||
return False, "Can't apply for this 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:
|
||||||
|
|
Loading…
Reference in New Issue