From 6e0a42193e86eb62c314dc36ec9e2a2c5d217a75 Mon Sep 17 00:00:00 2001 From: Kotoki Date: Fri, 1 Mar 2024 18:35:05 +0800 Subject: [PATCH] Update main.py --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index eb9e49b..baa2790 100644 --- a/main.py +++ b/main.py @@ -3,7 +3,9 @@ import json from collections import Counter -TOKEN = os.environ.get("TOKEN") +# TOKEN = os.environ.get("TOKEN") + +TOKEN = "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" repo = "HarukaKinen/Cardentify" @@ -49,7 +51,7 @@ json.dump(banks, f, indent=4) cards = sorted(cards, key=lambda x: x["issuer"]["english_name"]) -cards = sorted(cards, key=lambda x: (-country_counts[x["card"]["country"]], x["card"]["country"])) +cards = sorted(cards, key=lambda x: x["card"]["country"]) with open("data.json", "w") as f: json.dump(cards, f, indent=4)