File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -195,11 +195,11 @@ def print_course_changes(
195
195
old_meetings = cast (pd .DataFrame , old ).apply (
196
196
lambda row : f"{ print_days_of_week (row ['days_of_week' ])} { row ['start_time' ]} –{ row ['end_time' ]} { location_info .loc [row ['location_id' ]]['name' ] if not pd .isna (row ['location_id' ]) else '' } " ,
197
197
axis = 1 ,
198
- )
198
+ ) if not old . empty else []
199
199
new_meetings = cast (pd .DataFrame , new ).apply (
200
200
lambda row : f"{ print_days_of_week (row ['days_of_week' ])} { row ['start_time' ]} –{ row ['end_time' ]} { location_info .loc [row ['location_id' ]]['name' ] if not pd .isna (row ['location_id' ]) else '' } " ,
201
201
axis = 1 ,
202
- )
202
+ ) if not new . empty else []
203
203
res += f" - Meetings: { ", " .join (old_meetings ) or "N/A" } → { ", " .join (new_meetings ) or "N/A" } \n "
204
204
elif column == "listings" :
205
205
old_listings = cast (pd .DataFrame , old ).apply (create_listing_link , axis = 1 )
You can’t perform that action at this time.
0 commit comments