From 74704b81710e466e0769d6aa81471e3e3fb8afea Mon Sep 17 00:00:00 2001 From: Tnix Date: Sat, 24 Aug 2024 01:10:16 +1200 Subject: [PATCH] fix: add 'error: false' to /emojis (#297) --- 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 d7ac037..da0bd97 100644 --- a/rest_api/v0/emojis.py +++ b/rest_api/v0/emojis.py @@ -16,6 +16,6 @@ @emojis_bp.get("/") async def get_default_emojis(lang: str): if lang in DEFAULT_EMOJIS: - return DEFAULT_EMOJIS[lang], 200 + return {"error": False, "groups": DEFAULT_EMOJIS[lang]}, 200 else: abort(404)