From 87990fafe4dd50d25b92bb990ba3b82a2cd8ca57 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 5 Dec 2019 09:01:06 -0500 Subject: [PATCH] make sparklines actually work --- lib/philomena_web/controllers/profile_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/profile_controller.ex b/lib/philomena_web/controllers/profile_controller.ex index 4b777089..48ee3ad5 100644 --- a/lib/philomena_web/controllers/profile_controller.ex +++ b/lib/philomena_web/controllers/profile_controller.ex @@ -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),