Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Back Extra" field to Cloze builtin model #101

Merged
merged 7 commits into from
Jan 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add link and don't threaten to take away the feature
  • Loading branch information
kerrickstaley committed Jan 4, 2022
commit ed94c6eff509dda8b4095fe60f65219c05cf744d
5 changes: 3 additions & 2 deletions genanki/builtin_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ def _fix_deprecated_builtin_models_and_warn(model, fields):
if model is CLOZE_MODEL and len(fields) == 1:
fixed_fields = fields + ['']
warnings.warn(
'Using CLOZE_MODEL with a single field is deprecated and may not work in the future.'
'Using CLOZE_MODEL with a single field is deprecated.'
+ ' Please pass two fields, e.g. {} .'.format(repr(fixed_fields))
+ ' See TODO insert link', DeprecationWarning)
+ ' See https://github.com/kerrickstaley/genanki#cloze_model-deprecationwarning .',
DeprecationWarning)
return fixed_fields

return fields