We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eebf40 commit 61269c1Copy full SHA for 61269c1
open_sea_v1/endpoints/collections.py
@@ -48,7 +48,10 @@ def url(self):
48
49
@property
50
def parsed_http_response(self) -> list[CollectionResponse]:
51
- return self.parse_http_response(CollectionResponse, 'collections')
+ resp_json = self._http_response.json()
52
+ collections_json = resp_json if isinstance(resp_json, list) else resp_json['collections']
53
+ collections = [CollectionResponse(collection_json) for collection_json in collections_json]
54
+ return collections
55
56
def _get_request(self, **kwargs):
57
params = dict(
0 commit comments