Skip to content

Commit b32c688

Browse files
docs: Add CLI callout for creating model_id (#130)
I simply added a callout to make generating a hardcoded model_id easier.
1 parent 0185006 commit b32c688

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ CSS.
4646

4747
You need to pass a `model_id` so that Anki can keep track of your model. It's important that you use a unique `model_id`
4848
for each `Model` you define. Use `import random; random.randrange(1 << 30, 1 << 31)` to generate a suitable model_id, and hardcode it
49-
into your `Model` definition.
49+
into your `Model` definition. You can print one at the command line with
50+
51+
```bash
52+
python3 -c "import random; print(random.randrange(1 << 30, 1 << 31))"
53+
```
5054

5155
## Generating a Deck/Package
5256
To import your notes into Anki, you need to add them to a `Deck`:

0 commit comments

Comments
 (0)