mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-02 15:48:00 +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 =
|
last_90 =
|
||||||
UserStatistic
|
UserStatistic
|
||||||
|> where(user_id: ^user.id)
|
|> where(user_id: ^user.id)
|
||||||
|> where([us], us.day > ^(now - 89))
|
|> where([us], us.day >= ^(now - 89))
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|> Map.new(&{now - &1.day, &1})
|
|> Map.new(&{now - &1.day, &1})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue