correct get_mairie_opening_hours closed afternoon display (#25582)

This commit is contained in:
Elias Showk 2018-08-17 10:15:56 +02:00
parent 72408821ff
commit de2cfa6fbd
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ def get_mairie_opening_hours(mairie_data):
(period, all_day_hours) = get_period_from_data(abbr_day_of_week,
opening_time=opening_time, closing_time=closing_time)
if all_day_hours and period == 'am':
opening_hours_dict[weekday]['pm'] = '' # empty string to avoid displaying fermé
opening_hours_dict[abbr_day_of_week]['pm'] = '' # empty string to avoid displaying fermé
opening_hours_dict[abbr_day_of_week][period] = "%sh%s-%sh%s" % (
opening_time.strftime('%H'), opening_time.strftime('%M'),