Skip to content

Commit 292b235

Browse files
authored
fix: fixed operator precedence bug in query (#86)
Fix a simple Operator precedence bug.
1 parent ff61703 commit 292b235

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

aw_client/queries.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ def canonicalEvents(params: Union[DesktopQueryParams, AndroidQueryParams]) -> st
116116
else "",
117117
# Fetch browser events
118118
(
119-
browserEvents(params)
120-
if isDesktopParams(params)
121-
else ""
119+
(
120+
browserEvents(params)
121+
if isDesktopParams(params)
122+
else ""
123+
)
122124
+ ( # Include focused and audible browser events as indications of not-afk
123125
"""
124126
audible_events = filter_keyvals(browser_events, "audible", [true]);

0 commit comments

Comments
 (0)