Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX: durations are in minutes, not days!

  • Loading branch information...
commit 16851ba5eace106297f135e8c002b33417c07e45 1 parent b73fb88
@dabrahams authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  models.py
View
2  models.py
@@ -70,7 +70,7 @@ class TimeBlock(Model):
@property
def finish(self):
- return self.start + timedelta(self.duration)
+ return self.start + timedelta(minutes=self.duration)
def __str__(self):
return self.start.strftime('%m/%d %a ') + '%s - %s' % (
Please sign in to comment.
Something went wrong with that request. Please try again.