From af62df62b1c7c054172a185cc78365fd0d22c134 Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Wed, 6 Jan 2021 19:42:30 +0100
Subject: [PATCH] Clarify equation

---
 aleksis/core/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aleksis/core/views.py b/aleksis/core/views.py
index 1da251a8a..44e1aa33d 100644
--- a/aleksis/core/views.py
+++ b/aleksis/core/views.py
@@ -96,7 +96,7 @@ def index(request: HttpRequest) -> HttpResponse:
 
     widgets = request.user.person.dashboard_widgets
 
-    if len(widgets) <= 0:
+    if len(widgets) == 0:
         # Use default dashboard if there are no widgets
         widgets = DashboardWidgetOrder.default_dashboard_widgets
         context["default_dashboard"] = True
-- 
GitLab