Files
backend/app/services/reactions.py
T

11 lines
260 B
Python
Raw Normal View History

2026-01-02 21:47:28 +08:00
import json
def readReactionList() -> dict:
with open("reactions/list.json", "r", encoding="utf8") as f:
text = f.read()
result = json.loads(text)
return result
def readReaction(id: str):
return readReactionList().get(id, -1)