Commit 6c85d836 by Prayush Kumar

Update allocator.py to handle incoming students' current-year specification correctly

parent 7920e6a3
Showing with 3 additions and 1 deletions
......@@ -58,7 +58,9 @@ def parse_year_to_int(r):
if isinstance(r, (int, float)) and not np.isnan(r):
return int(r)
s = str(r).lower().strip()
if "first" in s or "1" in s or "incoming" in s:
if "incoming" in s:
return 0
elif "first" in s or "1" in s:
return 1
elif "second" in s or "2" in s:
return 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment