Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Prayush Kumar
/
icts-housing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6c85d836
authored
Jul 23, 2026
by
Prayush Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update allocator.py to handle incoming students' current-year specification correctly
parent
7920e6a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
app/allocator.py
app/allocator.py
View file @
6c85d836
...
@@ -58,7 +58,9 @@ def parse_year_to_int(r):
...
@@ -58,7 +58,9 @@ def parse_year_to_int(r):
if
isinstance
(
r
,
(
int
,
float
))
and
not
np
.
isnan
(
r
):
if
isinstance
(
r
,
(
int
,
float
))
and
not
np
.
isnan
(
r
):
return
int
(
r
)
return
int
(
r
)
s
=
str
(
r
)
.
lower
()
.
strip
()
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
return
1
elif
"second"
in
s
or
"2"
in
s
:
elif
"second"
in
s
or
"2"
in
s
:
return
2
return
2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment