forked from p15670423/monkey
Refactored fetch_details_for_display to return empty dict instead of empty array(because of type hint)
This commit is contained in:
parent
ad0b428699
commit
d333e8c1c0
|
@ -24,6 +24,8 @@ class MonkeyZTDetailsService:
|
||||||
details['latest_events'] = MonkeyZTDetailsService._get_events_without_overlap(details['event_count'],
|
details['latest_events'] = MonkeyZTDetailsService._get_events_without_overlap(details['event_count'],
|
||||||
details['latest_events'])
|
details['latest_events'])
|
||||||
return details
|
return details
|
||||||
|
else:
|
||||||
|
return {}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_events_without_overlap(event_count: int, events: List[object]) -> List[object]:
|
def _get_events_without_overlap(event_count: int, events: List[object]) -> List[object]:
|
||||||
|
|
Loading…
Reference in New Issue