From 63e7d89df1664fdb587e095be9a0f3afb68f9dd7 Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Fri, 30 Mar 2018 15:40:43 +0700 Subject: [PATCH] Adjustment to be able to show ALL domain in dashboard table --- app/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index e74d5a3..0b73916 100644 --- a/app/views.py +++ b/app/views.py @@ -338,7 +338,9 @@ def dashboard_domains(): start = int(request.args.get("start", 0)) length = min(int(request.args.get("length", 0)), 100) - domains = domains[start:start + length] + + if length != -1: + domains = domains[start:start + length] if current_user.role.name != 'Administrator': domains = [d[2] for d in domains]