Use provided `end` in Timer.stop() (#111)

This commit is contained in:
Christopher C. Wells 2020-02-06 19:56:26 -08:00
parent 5b24ff21b6
commit 703782b21c
1 changed files with 1 additions and 1 deletions

View File

@ -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()