From 10321195aa6c96e8adfed5af72100e3ed9b4d541 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 11 Apr 2026 22:34:09 +0200 Subject: [PATCH] docs: remove watch-order readme --- README.md | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 3913d57..0000000 --- a/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# mal - -## watch-order dataset - -relations are loaded from a local dataset file instead of live scraping chiaki at request time. - -### runtime - -- env var: `WATCH_ORDER_FILE` -- default path: `./data/watch_order.json` - -### regenerate dataset - -1. refresh seed ids from local db - -```sh -python3 - <<'PY' -import sqlite3, json, pathlib -conn = sqlite3.connect('mal.db') -cur = conn.cursor() -cur.execute('select id from anime order by id') -ids=[r[0] for r in cur.fetchall()] -path=pathlib.Path('tmp/watch_order_seed_ids.json') -path.write_text(json.dumps({'ids': ids}, indent=2), encoding='utf-8') -print(f'wrote {len(ids)} ids to {path}') -PY -``` - -2. generate dataset json - -```sh -go run ./cmd/watchorder -seed "tmp/watch_order_seed_ids.json" -out "data/watch_order.json" -``` - -3. restart the server/container to load the updated file