correct get_mairie_opening_hours closed afternoon display (#25582)
This commit is contained in:
parent
72408821ff
commit
de2cfa6fbd
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue