Skip to content

Commit

Permalink
Use provided end in Timer.stop() (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Feb 7, 2020
1 parent 5b24ff2 commit 703782b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/models.py
Expand Up @@ -460,7 +460,7 @@ def restart(self):

def stop(self, end=None):
"""Stop the timer."""
if not self.end:
if not end:
end = timezone.now()
self.end = end
self.save()
Expand Down

0 comments on commit 703782b

Please sign in to comment.