mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
make sparklines actually work
This commit is contained in:
parent
6882dd00e3
commit
87990fafe4
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ defmodule PhilomenaWeb.ProfileController do
|
|||
|> where(user_id: ^user.id)
|
||||
|> where([us], us.day > ^(now - 89))
|
||||
|> Repo.all()
|
||||
|> Map.new(&{&1.day, &1})
|
||||
|> Map.new(&{now - &1.day, &1})
|
||||
|
||||
%{
|
||||
uploads: individual_stat(last_90, :uploads),
|
||||
|
|
Loading…
Reference in a new issue