From 0e56e03409e5adcb6f9131e49295d579a924e699 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 3 Dec 2024 19:15:48 +0100 Subject: [PATCH] Response fix. --- src/devranta/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devranta/api.py b/src/devranta/api.py index 0e1b876..4388bba 100644 --- a/src/devranta/api.py +++ b/src/devranta/api.py @@ -165,7 +165,8 @@ class Api: url=self.patch_url(f"comments/{comment_id}"), data=self.patch_auth({"comment": comment}), ) - return await response.get("success", False) + obj = await response.json() + return obj.get("success", False) @property async def notifs(self):