Handle cache issues with new embeds
This commit is contained in:
parent
251c120731
commit
e79bb9358f
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ class DbrandCog(Extension):
|
|||
fields = None
|
||||
if data is not None and data["is_valid"] and data["shipping_available"]:
|
||||
fields = []
|
||||
fields.append(EmbedField(data["tier-title"], data["time-title"]))
|
||||
fields.append(
|
||||
EmbedField(data["carrier"] + " " + data["tier-title"], data["time-title"])
|
||||
)
|
||||
for service in data["shipping_services_available"][1:]:
|
||||
service_data = await self._session.get(self.api_url + dest + "/" + service["url"])
|
||||
if service_data.status > 400:
|
||||
|
|
Loading…
Add table
Reference in a new issue