Edited some files before work begins.
This commit is contained in:
parent
cf412dc4bf
commit
f14dc616af
|
@ -15,7 +15,7 @@ async def mtg(name):
|
||||||
getCard = str(name)
|
getCard = str(name)
|
||||||
|
|
||||||
await asyncio.sleep(0.05)
|
await asyncio.sleep(0.05)
|
||||||
card = scrython.cards.Named(loop=bot.loop, fuzzy=getCard)
|
card = scrython.cards.Named(fuzzy=getCard)
|
||||||
|
|
||||||
if card.type_line() == 'Creature':
|
if card.type_line() == 'Creature':
|
||||||
PT = "({}/{})".format(card.power(), card.toughness())
|
PT = "({}/{})".format(card.power(), card.toughness())
|
||||||
|
|
|
@ -80,7 +80,7 @@ class CardsObject(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
self.encodedParams = urllib.parse.urlencode(self.params)
|
self.encodedParams = urllib.parse.urlencode(self.params)
|
||||||
self._url = 'https://api.scryfall.com/' + _url + "&" + self.encodedParams #Find a fix for this later
|
self._url = 'https://api.scryfall.com/' + _url + "&" + self.encodedParams
|
||||||
|
|
||||||
async def getRequest(client, url, **kwargs):
|
async def getRequest(client, url, **kwargs):
|
||||||
async with client.get(url, **kwargs) as response:
|
async with client.get(url, **kwargs) as response:
|
||||||
|
|
Loading…
Reference in New Issue