X-Git-Url: https://git.yukkurigames.com/?p=mlpccg-meta.git;a=blobdiff_plain;f=mlpccg%2FCardDb.py;h=4111683cd649ea30402a927ec2539a7f058231d6;hp=fdfbb0a5541889ced564f26183e5fad747249a0b;hb=22a94820738824527277e21f2f37bc77638e12bc;hpb=0f08a0d1ebcd8d825a7df448221a7eb23600bba5 diff --git a/mlpccg/CardDb.py b/mlpccg/CardDb.py index fdfbb0a..4111683 100644 --- a/mlpccg/CardDb.py +++ b/mlpccg/CardDb.py @@ -5,7 +5,7 @@ import logging import time class CardDb: - set_ids = { + set_ids = { # NOTE: if there is ever an 'f' in here, update the ponyhead link generation 'Premiere': 'pr', 'Canterlot Nights': 'cn', 'Rock \'n Rave': 'rr', @@ -69,7 +69,7 @@ class CardDb: except IOError: logging.exception('failed') - def download_cards_json(self, json_path='cards.json', url='https://dl.dropboxusercontent.com/u/32733446/cards.json'): + def download_cards_json(self, json_path='data/cards.json', url='https://dl.dropboxusercontent.com/u/32733446/cards.json'): logging.debug('downloading %s from %s', json_path, url) try: urllib.urlretrieve(url, json_path)