mirror of https://github.com/snachodog/mybuddy.git
Use provided `end` in Timer.stop() (#111)
This commit is contained in:
parent
5b24ff21b6
commit
703782b21c
|
@ -460,7 +460,7 @@ class Timer(models.Model):
|
|||
|
||||
def stop(self, end=None):
|
||||
"""Stop the timer."""
|
||||
if not self.end:
|
||||
if not end:
|
||||
end = timezone.now()
|
||||
self.end = end
|
||||
self.save()
|
||||
|
|
Loading…
Reference in New Issue