#!/usr/bin/env nu let old_head = "" let new_head = ( ["Torrent Stats

Last updated:", (date now | format date "%F %T%:z"), "

"] | str join ' ' ) ( /home/jas/.local/bin/uv run -q /home/jas/admin-scripts/list_torrents.py | from ssv -m 2 | to html | str replace ($old_head) ($new_head) | save -f -r /home/jas/public/html/torrents.html )