You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the concise display of the openinghours do not work, if the company has a break. It will display all of the weekdays. I managed to find the potential source:
for day in days:
if 'hours' not in current_set.keys():
current_set = {'day_names': [day['name']],
'hours': day['hours']}
elif day['hours'] != current_set['hours']: # note 1
concise_days.append(current_set)
current_set = {'day_names': [day['name']],
'hours': day['hours']}
else:
current_set['day_names'].append(day['name'])
Note 1: Here, if you have two sets, it will change current_set. Thus, day['hours'] != current_set['hours'] will always be true for those cases. It should check, if there is a day['hours'] in concise_days and do actions according to it existence.
Do you guys have a solution for this? I am struggling with it.
The text was updated successfully, but these errors were encountered:
Hey,
the concise display of the openinghours do not work, if the company has a break. It will display all of the weekdays. I managed to find the potential source:
openinghours/templatetags/openinghours_tags.py
lines 141 - 150
Note 1: Here, if you have two sets, it will change current_set. Thus,
day['hours'] != current_set['hours']
will always be true for those cases. It should check, if there is aday['hours']
inconcise_days
and do actions according to it existence.Do you guys have a solution for this? I am struggling with it.
The text was updated successfully, but these errors were encountered: