Permalink
Browse files

BUGFIX: durations are in minutes, not days!

  • Loading branch information...
1 parent b73fb88 commit 16851ba5eace106297f135e8c002b33417c07e45 @dabrahams committed May 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 models.py
View
@@ -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' % (

0 comments on commit 16851ba

Please sign in to comment.