commit 2bf2425d5e4365e1e4eb9f0e6619ad86183246c6
parent 9e7b745f9fe7f10937c58410b825d9f5a1824a60
Author: alex wennerberg <alex@alexwennerberg.com>
Date: Sat, 10 Feb 2024 21:03:27 -0500
update gitignore and miss line
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -4,3 +4,5 @@ allcards.txt
*.csv
*.tsv
.venv
+__pycache__
+_site
diff --git a/getdata.py b/getdata.py
@@ -110,6 +110,8 @@ def save_sheet(cur, sheet, n, final):
player = row[0]
if len(player) > 50 and player[0] == "B":
player = "Beefman" # messy unicode
+ if player == "IGNORE WAS MISTAKE":
+ continue
cards = row[1].split("\n")
if not final: #already done
cur.execute("insert into deck values (?,?,?,?,?);", (n, player, clean_card(cards[0]), clean_card(cards[1]), clean_card(cards[2])))