summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 119671c..99cf923 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1588,7 +1588,7 @@ class ProjectIssue(GitlabObject):
GitlabConnectionError: If the server cannot be reached.
"""
url = ('/projects/%(project_id)s/issues/%(issue_id)s/'
- 'reset_spent_time' %
+ 'add_spent_time' %
{'project_id': self.project_id, 'issue_id': self.id})
r = self.gitlab._raw_post(url, **kwargs)
raise_error_from_response(r, GitlabTimeTrackingError, 200)
@@ -1601,7 +1601,7 @@ class ProjectIssue(GitlabObject):
GitlabConnectionError: If the server cannot be reached.
"""
url = ('/projects/%(project_id)s/issues/%(issue_id)s/'
- 'add_spent_time' %
+ 'reset_spent_time' %
{'project_id': self.project_id, 'issue_id': self.id})
r = self.gitlab._raw_post(url, **kwargs)
raise_error_from_response(r, GitlabTimeTrackingError, 200)