From 192cb727a0fb2fc1a4b347a2af6ae0f58466e8f1 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 4 Apr 2021 13:02:58 -0400 Subject: [PATCH] fix off-by-one error in user stat rendering --- 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 2f721fd3..6388d25b 100644 --- a/lib/philomena_web/controllers/profile_controller.ex +++ b/lib/philomena_web/controllers/profile_controller.ex @@ -193,7 +193,7 @@ defmodule PhilomenaWeb.ProfileController do last_90 = UserStatistic |> where(user_id: ^user.id) - |> where([us], us.day > ^(now - 89)) + |> where([us], us.day >= ^(now - 89)) |> Repo.all() |> Map.new(&{now - &1.day, &1})