forked from p15670423/monkey
Island: Remove unneccessary call to list()
This commit is contained in:
parent
cd84280e79
commit
9ec91ec97a
|
@ -64,5 +64,5 @@ class MongoEventRepository(IEventRepository):
|
||||||
return serializer.deserialize(mongo_record)
|
return serializer.deserialize(mongo_record)
|
||||||
|
|
||||||
def _query_events(self, query: Dict[Any, Any]) -> Sequence[AbstractAgentEvent]:
|
def _query_events(self, query: Dict[Any, Any]) -> Sequence[AbstractAgentEvent]:
|
||||||
serialized_events = list(self._events_collection.find(query, {MONGO_OBJECT_ID_KEY: False}))
|
serialized_events = self._events_collection.find(query, {MONGO_OBJECT_ID_KEY: False})
|
||||||
return list(map(self._deserialize, serialized_events))
|
return list(map(self._deserialize, serialized_events))
|
||||||
|
|
Loading…
Reference in New Issue