Welcome.
- Ensure that the script produces Logseq-compatible markdown.
- Check the exact result in a different editor.
- Then compare with how it looks when it works.
- Could share here for others to confirm.
- Check the exact result in a different editor.
- Ensure that the query is reliable.
- Could share here for others to try it.
- Re-index (and then maybe restart) should be enough.
- If that doesn’t work, it may be a bug.
- Consider trying an internal javascript script, to force updating each page in the database.
- Could even produce the script from the same python code, to ensure the same semantics.
- Consider integrating with Edit and run python code inside Logseq itself