collect logseq logbook stats
Figured, I’m not good at logseq datalog queries yet, so may as well just read logseq LOGBOOK data using plain python. And with assist of chat gpt, I have a nice proof of concept. from pathlib import Path import polars as pl import time_log as tl journals_dir = "mgraphblah/journals" pattern = "2025_*.md" out_vec = tl.iterate_across_journals(journals_dir, pattern) df = pl.from_dicts(out_vec) how much time I spent on taxes? per_tag_stats = df.explode("Tags").group_by("Tags").agg(pl.col("Duration (mins)").sum().alias("Total minutes")) per_tag_stats....