From 99119abc8a5db70e0572a689e1e0d458837f4057 Mon Sep 17 00:00:00 2001 From: kid1194 Date: Mon, 26 Sep 2022 20:42:06 +0300 Subject: [PATCH] Update to v1.0.2 --- active_users/api/handler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/active_users/api/handler.py b/active_users/api/handler.py index abe87dd..1bb5394 100644 --- a/active_users/api/handler.py +++ b/active_users/api/handler.py @@ -101,11 +101,11 @@ def get_users(): data = frappe.get_all( "User", fields=["name", "full_name", "user_image"], - filters={ - "enabled": 1, - "user_type": ["in", user_type], - "last_active": ["between", [start, end]], - }, + filters=[ + ["enabled", "=", 1], + ["user_type", "in", user_type], + ["last_active", "between", [start, end]], + ], order_by="full_name asc", limit_page_length=0, )