ActivityWatch / aw-server

ActivityWatch server for storage of all your Quantified Self data.
Mozilla Public License 2.0
95 stars 55 forks source link

QueryParseException when semicolon in expression #145

Open ErikBjare opened 1 year ago

ErikBjare commented 1 year ago

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.

johan-bjareholt commented 1 year ago

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