From 09005994b531881da92972d0d2a8904dfecf7532 Mon Sep 17 00:00:00 2001 From: Tnix Date: Fri, 23 Aug 2024 22:54:19 +1200 Subject: [PATCH] fix: don't add an extra .json --- rest_api/v0/emojis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_api/v0/emojis.py b/rest_api/v0/emojis.py index 1536a6d..d7ac037 100644 --- a/rest_api/v0/emojis.py +++ b/rest_api/v0/emojis.py @@ -8,7 +8,7 @@ DEFAULT_EMOJIS = {} # {lang: [...]} for filename in os.listdir("emojis"): if filename.endswith(".json"): - f = open(f"emojis/{filename}.json", "r") + f = open(f"emojis/{filename}", "r") DEFAULT_EMOJIS[filename.replace(".json", "")] = json.load(f) f.close()