Skip to content

Commit 889bbe5

Browse files
author
Dmytro Litvinov
committed
Change to correct logic of functions
1 parent 8c27e70 commit 889bbe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitlab/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ def add_spent_time(self, **kwargs):
15881588
GitlabConnectionError: If the server cannot be reached.
15891589
"""
15901590
url = ('/projects/%(project_id)s/issues/%(issue_id)s/'
1591-
'reset_spent_time' %
1591+
'add_spent_time' %
15921592
{'project_id': self.project_id, 'issue_id': self.id})
15931593
r = self.gitlab._raw_post(url, **kwargs)
15941594
raise_error_from_response(r, GitlabTimeTrackingError, 200)
@@ -1601,7 +1601,7 @@ def reset_spent_time(self, **kwargs):
16011601
GitlabConnectionError: If the server cannot be reached.
16021602
"""
16031603
url = ('/projects/%(project_id)s/issues/%(issue_id)s/'
1604-
'add_spent_time' %
1604+
'reset_spent_time' %
16051605
{'project_id': self.project_id, 'issue_id': self.id})
16061606
r = self.gitlab._raw_post(url, **kwargs)
16071607
raise_error_from_response(r, GitlabTimeTrackingError, 200)

0 commit comments

Comments
 (0)