Skip to content

Commit

Permalink
docs: Add CLI callout for creating model_id (#130)
Browse files Browse the repository at this point in the history
I simply added a callout to make generating a hardcoded model_id easier.
  • Loading branch information
hiAndrewQuinn committed May 12, 2024
1 parent 0185006 commit b32c688
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ CSS.

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`
for each `Model` you define. Use `import random; random.randrange(1 << 30, 1 << 31)` to generate a suitable model_id, and hardcode it
into your `Model` definition.
into your `Model` definition. You can print one at the command line with

```bash
python3 -c "import random; print(random.randrange(1 << 30, 1 << 31))"
```

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

0 comments on commit b32c688

Please sign in to comment.