Commit 4b545729 authored by lunasorcery's avatar lunasorcery
Browse files

cleaner hidden-prod handling

parent 3352350b
......@@ -21,9 +21,7 @@ def crc32_file(filename):
# load prods
with open('prods.json') as file:
prods = json.load(file)
prods = [prod for prod in prods if (not ('hidden' in prod)) or (not prod['hidden'])]
prods = [prod for prod in json.load(file) if not prod.get('hidden', False)]
# figure out the meteorik prods
for idx,prod in enumerate(prods):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment