fix bug
This commit is contained in:
parent
52f76dad12
commit
7e18e78e69
1 changed files with 2 additions and 4 deletions
|
@ -160,10 +160,8 @@ fn (mut app App) get_ppu() !f64 {
|
|||
}
|
||||
|
||||
fn (mut app App) get_mean_time_between_pannenkoeken() !time.Duration {
|
||||
time_zero := time.Time{
|
||||
unix: 0
|
||||
}
|
||||
mut people := sql app.db {
|
||||
time_zero := time.unix(0)
|
||||
mut people := sql app.db {
|
||||
select from Person where (status == 3 && delivery_time > time_zero) order by delivery_time desc limit 10
|
||||
}!
|
||||
return stats.mean(arrays.window(people, size: 2).map(it[0].delivery_time - it[1].delivery_time))
|
||||
|
|
Loading…
Reference in a new issue