We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43dd2c commit 0676c6aCopy full SHA for 0676c6a
pyzootool/items.py
@@ -3,7 +3,7 @@
3
4
from pyzootool import ROOT_URL
5
6
-class ZooResult():
+class ZooItemResult():
7
8
def __init__(self, json_data):
9
self.parse_results(json_data)
@@ -33,8 +33,8 @@ def get_item(self, item_id):
33
)
34
resp, content = self.http.request(url)
35
json_data = json.loads(content)
36
- result = ZooResult(item)
37
- return zoo_results
+ result = ZooItemResult(item)
+ return result
38
39
def get_popular(self, pop_type):
40
values = {'type': pop_type, 'apikey': self.apikey }
@@ -45,6 +45,6 @@ def get_popular(self, pop_type):
45
46
zoo_results = []
47
for item in json_data:
48
49
zoo_results.append(result)
50
return zoo_results
0 commit comments