mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
fix off-by-one error in user stat rendering
This commit is contained in:
parent
838b449193
commit
192cb727a0
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ defmodule PhilomenaWeb.ProfileController do
|
|||
last_90 =
|
||||
UserStatistic
|
||||
|> where(user_id: ^user.id)
|
||||
|> where([us], us.day > ^(now - 89))
|
||||
|> where([us], us.day >= ^(now - 89))
|
||||
|> Repo.all()
|
||||
|> Map.new(&{now - &1.day, &1})
|
||||
|
||||
|
|
Loading…
Reference in a new issue