Commit c376f886 authored by DEBASHISH DEKA's avatar DEBASHISH DEKA

dadffd

parent 0c8e39f8
......@@ -45,10 +45,11 @@ def stable_marriage(prof_mat,allot_count):
a_b_mapping[each] = i
track_list.remove(i)
temp = True
stud_count -= 1
break
if temp:
# print(str(i) +" -- "+ str(each))
stud_count -= 1
#stud_count -= 1
break
else:
for j in possible_stud:
......@@ -170,5 +171,5 @@ def get_alloc_data():
# print(data['data_B'][v])
final_mapping_list.append((data['data_A'][k],data['data_B'][v]))
# print("----------------------")
print(json.dumps({'mapping':final_mapping_list}))
return json.dumps({'mapping':final_mapping_list})
\ No newline at end of file
# print(json.dumps({'mapping':final_mapping_list}))
return json.dumps({'mapping':final_mapping_list})
No preview for this file type
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 to comment