misc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.alexwennerberg.com/misc
Log | Files | Refs | README | LICENSE

commit 40bd894330ea904a70547f4beb404fd7cf5c8964
parent 85cc09c45b5924e5b2773ab570c13b602241c07f
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed, 13 Sep 2023 11:29:39 -0400

more data cleaning 3cm

Diffstat:
M3cm/getdata.py | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/3cm/getdata.py b/3cm/getdata.py @@ -18,7 +18,7 @@ def get_round_fileids(): res = requests.get("https://sites.google.com/view/3cb-metashape/pairings-results/past-results") sheetre = re.compile("spreadsheets/d/(.*?)/") ids = sheetre.findall(res.text) - ids.append("1dV6pP5GCxsu-N8OpStnow5iPrf5jni5FqGgpgnIZiiE") # last round + # ids.append("1IkPXhxSRgoAXP9GIF_tPyV9QPhUUI2fOwl6Oktq5msw") # last round return ids played_decks = set() @@ -27,6 +27,15 @@ played_cards = set() # fixing some data issues def clean(card): mapping = { + "ornihopter": "ornithopter", + "sandstone needles": "sandstone needle", + "windburn muse": "windborn muse", + "restore balans": "restore balance", + "plains (ons 333)": "plains", + "elspeth, sun's champion wooooooo": "elspeth, sun's champion", + "restore balancee (i have to misspell this cuz the regex is buggy lmao)": "restore balance", + "karakaê‚ (its listed as unbanned but the form wont let me submit it idk its my first time lol)": "karakas", + "elspeth suns champion": "elspeth, sun's champion", # y'all struggle with this one "old growth dryad": "old-growth dryads", "old-growth dryad": "old-growth dryads",