Skip to content
Snippets Groups Projects
Commit eed7310a authored by Millian Poquet's avatar Millian Poquet
Browse files

code: fix check (inner->outer join for 0 slots)

parent fb82ae2c
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ class FilteredCelcatEvents: ...@@ -47,7 +47,7 @@ class FilteredCelcatEvents:
}).reset_index(drop=True) }).reset_index(drop=True)
reordered_course_req_df = self._course_request.df[['course_request_id', 'module_apogee', 'module_readable', 'begin_date', 'end_date', 'course_type', 'group', 'expected_nb_slots']] reordered_course_req_df = self._course_request.df[['course_request_id', 'module_apogee', 'module_readable', 'begin_date', 'end_date', 'course_type', 'group', 'expected_nb_slots']]
checked_df = reordered_course_req_df.merge(check_df, how='inner', on='course_request_id') checked_df = reordered_course_req_df.merge(check_df, how='outer', on='course_request_id')
fetch_problem_df = checked_df[checked_df['expected_nb_slots'] != checked_df['fetched_timeslot_count']] fetch_problem_df = checked_df[checked_df['expected_nb_slots'] != checked_df['fetched_timeslot_count']]
if len(fetch_problem_df) > 0: if len(fetch_problem_df) > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment