mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-25 14:34:33 +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(user_id: ^user.id)
|
||||||
|> where([us], us.day > ^(now - 89))
|
|> where([us], us.day > ^(now - 89))
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|> Map.new(&{&1.day, &1})
|
|> Map.new(&{now - &1.day, &1})
|
||||||
|
|
||||||
%{
|
%{
|
||||||
uploads: individual_stat(last_90, :uploads),
|
uploads: individual_stat(last_90, :uploads),
|
||||||
|
|
Loading…
Reference in a new issue