From 2c153caf25d4dc484643028972c6ba80a2d51d68 Mon Sep 17 00:00:00 2001 From: kid1194 Date: Tue, 4 Oct 2022 19:24:57 +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 1bb5394..abe87dd 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, )