make it working

This commit is contained in:
bkfox 2017-01-09 16:20:15 +01:00
parent 7a0481c60c
commit 7d315ea002

View File

@ -303,7 +303,7 @@ class Station(Nameable):
next_log = logs.filter(pk__gt = partial.pk).first()
if not next_log or next_log.date > diff.end:
partial.date = diff.end
logs_ = list(logs_[:count]) + [partial]
logs_ = list(logs_) + [partial]
# append to list
diff_ = diff