forked from p34709852/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
|
@ -23,7 +23,9 @@ class MonkeyZTDetailsService:
|
|||
details = details[0]
|
||||
details['latest_events'] = MonkeyZTDetailsService._get_events_without_overlap(details['event_count'],
|
||||
details['latest_events'])
|
||||
return details
|
||||
return details
|
||||
else:
|
||||
return {}
|
||||
|
||||
@staticmethod
|
||||
def _get_events_without_overlap(event_count: int, events: List[object]) -> List[object]:
|
||||
|
|
Loading…
Reference in New Issue