Spaces:
Sleeping
Sleeping
coba false
Browse files
main.py
CHANGED
|
@@ -192,7 +192,7 @@ def get_recommendations_logic(current_semester: int, courses_passed_list: List[s
|
|
| 192 |
future_courses = [c for c in final_valid_candidates if c["semester_plan"] > current_semester]
|
| 193 |
|
| 194 |
sorted_catch_up = sorted(catch_up_courses, key=lambda x: (x["semester_plan"], -x["priority_score"]))
|
| 195 |
-
sorted_current = sorted(current_semester_courses, key=lambda x: -x["priority_score"], reverse=
|
| 196 |
sorted_future = sorted(future_courses, key=lambda x: (x["semester_plan"], -x["priority_score"]))
|
| 197 |
|
| 198 |
final_ranked_list = sorted_catch_up + sorted_current + sorted_future
|
|
|
|
| 192 |
future_courses = [c for c in final_valid_candidates if c["semester_plan"] > current_semester]
|
| 193 |
|
| 194 |
sorted_catch_up = sorted(catch_up_courses, key=lambda x: (x["semester_plan"], -x["priority_score"]))
|
| 195 |
+
sorted_current = sorted(current_semester_courses, key=lambda x: -x["priority_score"], reverse=False)
|
| 196 |
sorted_future = sorted(future_courses, key=lambda x: (x["semester_plan"], -x["priority_score"]))
|
| 197 |
|
| 198 |
final_ranked_list = sorted_catch_up + sorted_current + sorted_future
|