diff --git a/hashtopolis/hashtopolis.py b/hashtopolis/hashtopolis.py index ff1a14f..96c8076 100644 --- a/hashtopolis/hashtopolis.py +++ b/hashtopolis/hashtopolis.py @@ -1101,14 +1101,14 @@ def get_cracks_per_day(self): uri = self._api_endpoint + self._model_uri + 'getCracksPerDay' r = requests.get(uri, headers=self._headers) self.validate_status_code(r, [200], "getCracksPerDay failed") - return r.json()['data'] + return r.json()['meta'] def get_completed_count(self): self.authenticate() uri = self._api_endpoint + self._model_uri + 'getCompletedCount' r = requests.get(uri, headers=self._headers) self.validate_status_code(r, [200], "getCompletedCount failed") - return r.json()['data'] + return r.json()['meta'] def get_global_config(self): self.authenticate() @@ -1127,7 +1127,7 @@ def recount_file_lines(self, file): 'fileId': file.id, } response = self._helper_request("recountFileLines", payload) - return File(**response['meta']) + return File(**response['data']) def rescan_global_files(self): response = self._helper_request("rescanGlobalFiles", {})