Skip to content

Commit 952424a

Browse files
committed
remove accidentally committed test code
1 parent 3942890 commit 952424a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

banyan/api/event_v2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ def _list_daterange(self, params: Dict[str, Any]) -> List[Resource]:
5656
params['order'] = 'asc'
5757
all_data: List[EventV2] = list()
5858
event_ids: Set[UUID] = set()
59+
schema = self.Meta.info_class.Schema()
5960
while params['after'] < params['before']:
6061
response_json = self._client.api_request('GET', self.Meta.list_uri, params=params)
61-
data: List[EventV2] = self.Meta.info_class.Schema().load(response_json['data'], many=True)
62+
data: List[EventV2] = schema.load(response_json['data'], many=True)
6263
data = list(filter(lambda x: x.event_id not in event_ids, data))
6364
if len(data) == 0:
6465
break

0 commit comments

Comments
 (0)