Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
fix: don't add an extra .json
Browse files Browse the repository at this point in the history
  • Loading branch information
tnix100 authored Aug 23, 2024
1 parent 173a64a commit 0900599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_api/v0/emojis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 0900599

Please sign in to comment.