update jsons
This commit is contained in:
parent
37d899a15f
commit
b4edcb7309
|
@ -73,7 +73,7 @@ function putIntoMapAndFetch(data) {
|
|||
} else if (whichGuesser === 'commander') {
|
||||
document.getElementById('guess-type').innerText = 'General Knowledge'
|
||||
} else if (whichGuesser === 'watermark') {
|
||||
document.getElementById('guess-type').innerText = 'Watermark'
|
||||
document.getElementById('guess-type').innerText = 'Watermark It'
|
||||
} else if (whichGuesser === 'artist') {
|
||||
document.getElementById('guess-type').innerText = 'Aesthetic Consultation'
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ def generate_initial_special_query(category):
|
|||
elif category == 'basic':
|
||||
string_query += 't%3Abasic&order=released&dir=asc&unique=prints&page='
|
||||
elif category == 'watermark':
|
||||
string_query += 'has%3Awatermark+-t%3Atoken+-st%3Amemorabilia+-set%3Aplist+-name%3A%2F%5EA-%2F&order=released&dir=asc&unique=prints&page='
|
||||
string_query += 'has%3Awatermark+not%3Apromo+-t%3Atoken+-st%3Amemorabilia+-set%3Aplist+-name%3A%2F%5EA-%2F&order=released&dir=asc&unique=prints&page='
|
||||
# add category string query here
|
||||
print(string_query)
|
||||
return string_query
|
||||
|
@ -121,7 +121,7 @@ def fetch_and_write_all_artist():
|
|||
queried_artists_pre = artist_ids[i*37:min((i+1)*37, len(artist_ids))]
|
||||
queried_artists = []
|
||||
for j in range(len(queried_artists_pre)):
|
||||
if artists[queried_artists_pre[j]][1] >= 50 or artists[queried_artists_pre[j]][0] in artist_allowlist:
|
||||
if artists[queried_artists_pre[j]][1] >= 60 or artists[queried_artists_pre[j]][0] in artist_allowlist:
|
||||
queried_artists.append(queried_artists_pre[j])
|
||||
print(queried_artists)
|
||||
print(i)
|
||||
|
@ -219,7 +219,7 @@ def to_compact_write_form_special(smallJson, art_names, response, category, arti
|
|||
fieldsInArtist = ['image_uris', 'digital',
|
||||
'set_type', 'artist_ids', 'security_stamp']
|
||||
fieldsInWatermark = ['image_uris', 'watermark',
|
||||
'set_type', 'digital', 'security_stamp', 'promo', 'set']
|
||||
'set_type', 'digital', 'security_stamp', 'set']
|
||||
data = smallJson['data']
|
||||
# write all fields needed in card
|
||||
for card in response['data']:
|
||||
|
@ -360,13 +360,13 @@ def write_image_uris(card_image_uris):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# for category in allCategories:
|
||||
# print(category)
|
||||
# fetch_and_write_all(category, generate_initial_query(category))
|
||||
# for category in specialCategories:
|
||||
# print(category)
|
||||
# fetch_and_write_all_special(
|
||||
# category, generate_initial_special_query(category))
|
||||
for category in allCategories:
|
||||
print(category)
|
||||
fetch_and_write_all(category, generate_initial_query(category))
|
||||
for category in specialCategories:
|
||||
print(category)
|
||||
fetch_and_write_all_special(
|
||||
category, generate_initial_special_query(category))
|
||||
# uncomment this once in a while, but it's expensive to run
|
||||
# fetch_and_write_initial_artist_query()
|
||||
fetch_and_write_all_artist()
|
||||
|
|
|
@ -269,9 +269,9 @@
|
|||
<label class="radio-label" for="watermark">
|
||||
<img
|
||||
class="thumbnail"
|
||||
src="https://c1.scryfall.com/file/scryfall-cards/art_crop/front/7/4/74c9c315-1cf4-468e-a74a-b5f3be4a63a1.jpg?1660719628"
|
||||
src="https://c1.scryfall.com/file/scryfall-cards/art_crop/front/b/6/b6188abb-2402-4ac8-96e9-d4ee8d52ef1b.jpg?1562708703"
|
||||
/>
|
||||
<h3>Watermark</h3></label
|
||||
<h3>Watermark It</h3></label
|
||||
>
|
||||
<img
|
||||
class="level-badge"
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3,5 +3,24 @@
|
|||
"Agentsofsneak": "Agents of S.N.E.A.K.",
|
||||
"Goblinexplosioneers": "Goblin Explosioneers",
|
||||
"Leagueofdastardlydoom": "League of Dastardly Doom",
|
||||
"Crossbreedlabs": "Crossbreed Labs"
|
||||
"Crossbreedlabs": "Crossbreed Labs",
|
||||
"Mtg": "Magic: The Gathering",
|
||||
"Wotc": "Wizards of the Coast",
|
||||
"Junioreurope": "Junior Series Europe",
|
||||
"D&d": "D&D",
|
||||
"Dengekimaoh": "Dengeki Maoh Logo",
|
||||
"Mlpgems": "My Little Pony Gems",
|
||||
"Judgeacademy": "Judge Academy",
|
||||
"Fnm": "Friday Night Magic",
|
||||
"Herospath": "Hero's Path",
|
||||
"Mps": "MPS",
|
||||
"Wpn": "Wizards Play Network",
|
||||
"Mlpsparkle": "My Little Pony Sparkle",
|
||||
"Colorpie": "Color pie",
|
||||
"Mtg10": "Magic 10th Anniversary",
|
||||
"Dci": "DCI",
|
||||
"Trumpkatsumai": "Trump Katsumai Logo",
|
||||
"Protour": "Pro Tour",
|
||||
"Mlpwaningmoon": "My Little Pony Waning Moon",
|
||||
"Mtg15": "Magic 15th Anniversary"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user