Skip to content

Commit 2691534

Browse files
committed
return query data #2
1 parent d3ce58f commit 2691534

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

duneanalytics/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__title__ = 'duneanalytics'
33
__description__ = 'Unofficial library for Dune Analytics.'
44
__url__ = 'https://github.com/itzmestar/duneanalytics'
5-
__version__ = '1.0.1'
5+
__version__ = '1.0.2'
66
__build__ = 0x010001
77
__author__ = 'Tarique Anwer'
88
__author_email__ = '[email protected]'

duneanalytics/duneanalytics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,7 @@ def query_result(self, result_id):
124124
if response.status_code == 200:
125125
data = response.json()
126126
print(data)
127+
return data
127128
else:
128129
print(response.text)
130+
return {}

0 commit comments

Comments
 (0)