do not execute stuff when importing

This commit is contained in:
Maximilian Keßler 2023-03-15 15:44:50 +01:00
parent b2ab5be3d9
commit 07d95e99f5
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -203,3 +203,10 @@ def link(game_json: dict) -> str:
compressed = compressJSONGame(game_json) compressed = compressJSONGame(game_json)
return "https://hanab.live/replay-json/{}".format(compressed) 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)