Ошибка в методе post api.
This commit is contained in:
2
api.py
2
api.py
@@ -50,7 +50,7 @@ class RedmineAPI:
|
|||||||
|
|
||||||
response = post(*args, **kwargs)
|
response = post(*args, **kwargs)
|
||||||
if response.status_code == 201:
|
if response.status_code == 201:
|
||||||
return post(*args, **kwargs).json()
|
return response.json()
|
||||||
|
|
||||||
def get_issue(self, issue_id: int) -> dict:
|
def get_issue(self, issue_id: int) -> dict:
|
||||||
result = self.get(f"/issues/{issue_id}.json")
|
result = self.get(f"/issues/{issue_id}.json")
|
||||||
|
|||||||
Reference in New Issue
Block a user