1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

Fix invalid list comprehension

This commit is contained in:
Steffo 2020-07-31 16:17:28 +02:00
parent ae3f88cc72
commit 38a689ccf0

View file

@ -159,7 +159,7 @@ class DogCommand(rc.Command):
breed = args.joined()
if breed:
if breed == "list":
await data.reply("\n".join([" Razze disponibili:", [f"[c]{breed}[/c]" for breed in self._breeds]]))
await data.reply("\n".join([" Razze disponibili:", *[f"[c]{breed}[/c]" for breed in self._breeds]]))
if breed in self._breeds:
url = f"https://dog.ceo/api/breed/{breed}/images/random"
else: