Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryParseException when semicolon in expression #145

Open
ErikBjare opened this issue Aug 10, 2023 · 1 comment
Open

QueryParseException when semicolon in expression #145

ErikBjare opened this issue Aug 10, 2023 · 1 comment
Labels

Comments

@ErikBjare
Copy link
Member

ErikBjare commented Aug 10, 2023

Trying to run a query with the following line:

events = categorize(events, [[["AW GitHub"], {"type": "regex", "regex": "github.com/ActivityWatch;AW"}]]);

Gives:

2023-08-10 12:06:24 [WARNING] 400 Client Error: BAD REQUEST for url: http://127.0.0.1:5600/api/0/query/
2023-08-10 12:06:24 [WARNING] Error message received: {'type': 'QueryParseException', 'message': 'Invalid syntax for value to assign'}

This is probably due to the ; in one of the rules.

@ErikBjare ErikBjare added the bug label Aug 10, 2023
@johan-bjareholt
Copy link
Member

Does it work with aw-server-rust?
The query implementation in aw-server-python is very hacky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants