Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit ad2cea8

Browse files
author
Jason Costello
committed
Parsing dictionary in each of the core .from_get() methods
1 parent b76bdfa commit ad2cea8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

hypervector/resources/core/benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def to_response(self):
2828
}
2929

3030
@classmethod
31-
def from_get(cls, dictionary):
32-
return cls.from_response(dictionary)
31+
def from_get(cls, response):
32+
return cls.from_response(response.json())
3333

3434
@classmethod
3535
def list(cls, ensemble):

hypervector/resources/core/definition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def to_response(self):
3434
}
3535

3636
@classmethod
37-
def from_get(cls, dictionary):
38-
return cls.from_response(dictionary)
37+
def from_get(cls, response):
38+
return cls.from_response(response.json())
3939

4040
@classmethod
4141
def list(cls):

hypervector/resources/core/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def to_response(self):
3030
}
3131

3232
@classmethod
33-
def from_get(cls, dictionary):
34-
return cls.from_response(dictionary)
33+
def from_get(cls, response):
34+
return cls.from_response(response.json())
3535

3636
@classmethod
3737
def list(cls):

0 commit comments

Comments
 (0)