Fix dbrand API changes
This commit is contained in:
parent
7b4c62a78f
commit
c812ced219
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ class DbrandCog(Extension):
|
||||||
fields = None
|
fields = None
|
||||||
if data is not None and data["is_valid"] and data["shipping_available"]:
|
if data is not None and data["is_valid"] and data["shipping_available"]:
|
||||||
fields = []
|
fields = []
|
||||||
fields.append(EmbedField(data["short-name"], data["time-title"]))
|
fields.append(EmbedField(data["tier-title"], data["time-title"]))
|
||||||
for service in data["shipping_services_available"][1:]:
|
for service in data["shipping_services_available"][1:]:
|
||||||
service_data = await self._session.get(self.api_url + dest + "/" + service["url"])
|
service_data = await self._session.get(self.api_url + dest + "/" + service["url"])
|
||||||
if service_data.status > 400:
|
if service_data.status > 400:
|
||||||
|
@ -135,7 +135,7 @@ class DbrandCog(Extension):
|
||||||
service_data = await service_data.json()
|
service_data = await service_data.json()
|
||||||
fields.append(
|
fields.append(
|
||||||
EmbedField(
|
EmbedField(
|
||||||
service_data["short-name"],
|
service_data["tier-title"],
|
||||||
service_data["time-title"],
|
service_data["time-title"],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue