mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
แก้ไขชื่อ
This commit is contained in:
parent
e46afe3989
commit
180f60364a
@ -103,7 +103,7 @@ class EnkaNetworkAPI:
|
||||
for filename in os.listdir(path[folder]):
|
||||
self.LOGGER.debug(f"Downloading {folder} file {filename}...")
|
||||
|
||||
data = await self.__http.update_asset(folder, filename)
|
||||
data = await self.__http.fetch_asset(folder, filename)
|
||||
|
||||
self.LOGGER.debug(f"Writing {folder} file {filename}...")
|
||||
|
||||
|
@ -146,7 +146,7 @@ class HTTPClient:
|
||||
)
|
||||
return self.request(r)
|
||||
|
||||
def update_asset(self, folder: str, filename: str) -> Response[DefaultPayload]:
|
||||
def fetch_asset(self, folder: str, filename: str) -> Response[DefaultPayload]:
|
||||
r = Route(
|
||||
'GET',
|
||||
f'master/exports/{folder}/{filename}'
|
||||
|
Loading…
Reference in New Issue
Block a user