forked from rc/aircox
fix on_air algorithm pbm
This commit is contained in:
parent
c9c985c1ef
commit
950efecb7e
|
@ -300,7 +300,7 @@ class Station(Nameable):
|
|||
date__gt = diff.start, date__lt = diff.end
|
||||
)
|
||||
if partial:
|
||||
next_log = logs.filter(pk__gt = partial_log.pk).first()
|
||||
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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user