Do not show disabled sub-methods in timeline

This commit is contained in:
Raphael Michel
2020-02-05 10:28:29 +01:00
parent b3e3d427cb
commit c8e6daa7a1

View File

@@ -175,6 +175,11 @@ def timeline_for_event(event, subevent=None):
for pprov in pprovs.values():
if not pprov.settings.get('_enabled', as_type=bool):
continue
try:
if not pprov.is_enabled:
continue
except:
pass
availability_date = pprov.settings.get('_availability_date', as_type=RelativeDateWrapper)
if availability_date:
d = make_aware(datetime.combine(