Skip to content

Conversation

njam
Copy link

@njam njam commented Aug 7, 2025

This is now following the same logic as the Python version, see:
https://github.com/kerrickstaley/genanki/blob/73f1debfd74d25245403186d52a093e6d846da41/genanki/model.py#L40

The value can either be:

  • "all": All the fields in the given list are required
  • "any" Any field in the given list is required

Since calculating required_fields is quite heavy we pre-calculate the value.

This is now folling the same logic as the Python version, see:
https://github.com/kerrickstaley/genanki/blob/73f1debfd74d25245403186d52a093e6d846da41/genanki/model.py#L40

Since calculating required_fields is quite heavy we pre-calculate the value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant