From 5b7e5bc50a844c1f399ae550978d03817e6bd375 Mon Sep 17 00:00:00 2001 From: Millian Poquet <millian.poquet@irit.fr> Date: Tue, 13 Sep 2022 16:09:57 +0200 Subject: [PATCH] code: show problematic time slots --- lflex_celcat_survival/events.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lflex_celcat_survival/events.py b/lflex_celcat_survival/events.py index 5ae5ee2..032faf7 100644 --- a/lflex_celcat_survival/events.py +++ b/lflex_celcat_survival/events.py @@ -54,6 +54,11 @@ class FilteredCelcatEvents: logging.warning('The number of time slots fetched from CELCAT does not match the expected number of time slots for some courses') logging.warning(f'\n{fetch_problem_df}') + logging.warning('\nDetails of the involved time slots:') + problematic_courses = fetch_problem_df[['course_request_id']] + problematic_time_slots = problematic_courses.merge(self.df, how='inner', on='course_request_id') + logging.warning(f'\n{problematic_time_slots}') + def parse_description(row): ''' Expecting an HTML text with this information, separated by HTML/CRCF line breaks: -- GitLab