make sparklines actually work

This commit is contained in:
byte[] 2019-12-05 09:01:06 -05:00
parent 6882dd00e3
commit 87990fafe4

View file

@ -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),