From 07d95e99f532563051b7f025934d8e10f8eb9f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Wed, 15 Mar 2023 15:44:50 +0100 Subject: [PATCH] do not execute stuff when importing --- compress.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compress.py b/compress.py index 9becfb6..92144dc 100644 --- a/compress.py +++ b/compress.py @@ -203,3 +203,10 @@ def link(game_json: dict) -> str: compressed = compressJSONGame(game_json) return "https://hanab.live/replay-json/{}".format(compressed) +if __name__ == "__main__": + deck_str = "15shareutrkcydvpxxudafpwcpmnkiuijnbhfmowbfaqggqklvsl" + deck_str = "15mfqsfrjfeixvhkhtaplakrcpnxlwdyqnwsmovdagkgpiuubcub" + deck_str = "15utfaladkwvgrsdwfpqrkouvxiaismnujcxpmgpqckyfelnhhbb" + deck_str = "15vxsmoiybhkgamdagwcsbeuqpwdarfhukfvifnutxjcknrqppll" + deck = decompress_deck(deck_str) + print(deck)