Skip to content

Commit 3c12e9f

Browse files
committed
Update dev script
1 parent a773c4c commit 3c12e9f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
CLAUDE.md
3+
RAD_SYNTAX.md

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,8 @@ Each show file (`data/{imdbId}.json`) uses a compact array format:
6565
**Episode schema:** `[episode, rating, votes, id]` — positional array, no keys.
6666

6767
The frontend deserializes this to `Episode` objects in `useShowData.ts`.
68+
69+
## Rad Scripts
70+
71+
You may have to write Rad scripts. See the [RAD_SYNTAX.md](./RAD_SYNTAX.md) reference file for help on how.
72+
The local [dev](./dev) script is an example of this.

dev

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ Facilitates imdb-ratings development.
44
---
55
args:
66
run r bool # Run in dev.
7+
data d int? # Run the data script for this many top shows.
8+
9+
data range [0,]
710

811
if run:
912
$`cd app && npm run dev`
1013

11-
14+
if data:
15+
$`python scripts/create_dataset.py -n {data}`

0 commit comments

Comments
 (0)