Skip to content

Commit

Permalink
npm audit, remove some debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencatro committed Nov 22, 2019
1 parent 3fb4b3f commit f2d7695
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 249 deletions.
3 changes: 0 additions & 3 deletions app/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,10 @@ def parse_draft_status(blob):
card_obj = util.all_mtga_cards.find_one(card).to_serializable()
if card in mtga_app.mtga_watch_app.collection:
card_obj["count"] = min(mtga_app.mtga_watch_app.collection[card] + picked_cards_this_draft.count(card), 4)
print(card_obj)
else:
print("womp womp")
card_obj["count"] = min(0 + picked_cards_this_draft.count(card), 4)
collection_count.append(card_obj)
collection_count.sort(key=lambda x: (-1 * util.rank_rarity(x["rarity"]), util.rank_colors(x["color_identity"]), util.rank_cost(x["cost"]), x["pretty_name"]))
print(collection_count)
general_output_queue.put({"draft_collection_count": collection_count})
else:
blob["DraftPack"] = []
Expand Down
Loading

0 comments on commit f2d7695

Please sign in to comment.