Skip to content

Commit

Permalink
only parse query results once
Browse files Browse the repository at this point in the history
  • Loading branch information
Deep Ganguli committed Jan 22, 2014
1 parent 0a15aeb commit b3d269a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pydruid/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def post(self,query):
raise IOError('{0} \n Query is: {1}'.format(e, json.dumps(self.query_dict, indent = 4)))
else:
self.result = self.parse()
parsed = self.parse()
return parsed
return self.result

def parse(self):
if self.result_json:
Expand Down

0 comments on commit b3d269a

Please sign in to comment.