GRM-29: fix: use PUT instead of POST for Vikunja task comments
This commit was merged in pull request #8.
This commit is contained in:
@@ -163,7 +163,7 @@ class VikunjaClient:
|
||||
return r.json()
|
||||
|
||||
def post_comment(self, task_id: int, comment: str) -> None:
|
||||
self._request("POST", f"/tasks/{task_id}/comments", json={"comment": comment})
|
||||
self._request("PUT", f"/tasks/{task_id}/comments", json={"comment": comment})
|
||||
|
||||
def update_task(self, task_id: int, **fields: Any) -> None:
|
||||
self._request("POST", f"/tasks/{task_id}", json=fields)
|
||||
|
||||
Reference in New Issue
Block a user