From c55084e582d5aff788130ddc0edd13d74e6cee47 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 3 Dec 2024 19:50:30 +0100 Subject: [PATCH] Replaced get with post. --- src/devranta/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/devranta/api.py b/src/devranta/api.py index f3675f4..66eac6b 100644 --- a/src/devranta/api.py +++ b/src/devranta/api.py @@ -161,12 +161,11 @@ class Api: if not await self.ensure_login(): return None async with self as session: - response = await session.get( + response = await session.post( url=self.patch_url(f"comments/{comment_id}"), data=self.patch_auth({"comment": comment}), ) obj = await response.json() - print(obj) return obj.get("success", False) @property