mirror of
https://github.com/arabianq/viking-file-python.git
synced 2026-04-28 06:21:24 +00:00
fix: get_file function parses response json incorrectly
This commit is contained in:
@@ -252,8 +252,7 @@ class AsyncVikingClient:
|
||||
session=self._session,
|
||||
timeout=self.timeout
|
||||
)
|
||||
api_response_json = await self._get_response_json(api_response)
|
||||
|
||||
api_response_json = (await self._get_response_json(api_response))[0]
|
||||
if api_response_json["exist"]:
|
||||
return File(
|
||||
hash=api_response_json.get("hash"),
|
||||
|
||||
Reference in New Issue
Block a user