Fixed a minor bug when creating a new card object.

This commit is contained in:
Nanda Scott 2018-01-09 21:04:26 -05:00
parent 3cb18962d0
commit 901d647b49
1 changed files with 1 additions and 2 deletions

View File

@ -49,7 +49,6 @@ class CardByName(object):
self.scryfallJson = loop.run_until_complete(getRequest(url='https://api.scryfall.com/cards/named?', params={'fuzzy':self.cardname})) self.scryfallJson = loop.run_until_complete(getRequest(url='https://api.scryfall.com/cards/named?', params={'fuzzy':self.cardname}))
self.session.close() self.session.close()
loop.close()
def object(self): def object(self):
return self.scryfallJson['object'] return self.scryfallJson['object']