From 3c7aa33aca69e3c0fcb3fb909f72dfea25696413 Mon Sep 17 00:00:00 2001 From: Weiji Xie <86898048+Shi-Soul@users.noreply.github.com> Date: Sun, 29 Sep 2024 22:17:59 +0800 Subject: [PATCH] Fix queries.py Line 119-123 Fix a simple Operator precedence bug. --- aw_client/queries.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/aw_client/queries.py b/aw_client/queries.py index 45e455f..c0311d3 100644 --- a/aw_client/queries.py +++ b/aw_client/queries.py @@ -116,9 +116,11 @@ def canonicalEvents(params: Union[DesktopQueryParams, AndroidQueryParams]) -> st else "", # Fetch browser events ( - browserEvents(params) - if isDesktopParams(params) - else "" + ( + browserEvents(params) + if isDesktopParams(params) + else "" + ) + ( # Include focused and audible browser events as indications of not-afk """ audible_events = filter_keyvals(browser_events, "audible", [true]);