Skip to content

Commit

Permalink
fix: fixed operator precedence bug in query (#86)
Browse files Browse the repository at this point in the history
Fix a simple Operator precedence bug.
  • Loading branch information
Shi-Soul authored Sep 29, 2024
1 parent ff61703 commit 292b235
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions aw_client/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 292b235

Please sign in to comment.