Skip to content

Commit

Permalink
Fix update logic bug thanks to comienzo2093
Browse files Browse the repository at this point in the history
  • Loading branch information
TRIAEIOU committed May 3, 2023
1 parent 825449c commit 508a124
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Reimplementation of [Flexible cloze](https://ankiweb.net/shared/info/1632356464)

![Night mode](https://raw.githubusercontent.com/TRIAEIOU/flexible-cloze-2/main/Screenshots/night-mode.png)


The addon adds two note types:

- `Flexible cloze 2`: Has 5 fields: `Title`, `Text`, `Notes`, `Mnemonics` and `Extra` where `Text` is the cloze field and `Title` the default sort field/shown in the card/note table.
Expand Down Expand Up @@ -253,3 +252,4 @@ There is effectively no add-on, it's all JavaScript (and HTML/CSS) and runs 100%
- 2023-02-10: Fix hint bug.
- 2023-02-18: Fix scroll and hint bugs.
- 2023-03-26: Restructure code, add `context-top` and `context-bottom`, add note specific config through tags, add log option/info, add search function, add `Flexible Cloze 2 (min)` template which only has `Text` and `Back Extra` fields. Improve styling, esp. for night mode.
- 2023-05-03: Fix update bug thanks to [comienzo2093](https://github.com/comienzo2093) for solution!
2 changes: 1 addition & 1 deletion bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Reimplementation of [Flexible cloze](https://ankiweb.net/shared/info/1632356464)

![Night mode](https://raw.githubusercontent.com/TRIAEIOU/flexible-cloze-2/main/Screenshots/night-mode.png)


The addon adds two note types:

- `Flexible cloze 2`: Has 5 fields: `Title`, `Text`, `Notes`, `Mnemonics` and `Extra` where `Text` is the cloze field and `Title` the default sort field/shown in the card/note table.
Expand Down Expand Up @@ -253,3 +252,4 @@ There is effectively no add-on, it's all JavaScript (and HTML/CSS) and runs 100%
- 2023-02-10: Fix hint bug.
- 2023-02-18: Fix scroll and hint bugs.
- 2023-03-26: Restructure code, add `context-top` and `context-bottom`, add note specific config through tags, add log option/info, add search function, add `Flexible Cloze 2 (min)` template which only has `Text` and `Back Extra` fields. Improve styling, esp. for night mode.
- 2023-05-03: Fix update bug thanks to [comienzo2093](https://github.com/comienzo2093) for solution!
6 changes: 3 additions & 3 deletions bin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
TAG_CSS_FUNC = "/*-- FC2 FUNCTIONALITY END --*/"

CVER = get_version()
NVER = "1.2.0"
NVER = "1.2.1"

#######################################################################
# Current code base
Expand Down Expand Up @@ -132,7 +132,7 @@ def update():
msgs += upgrade_one(model, nfront, nback, ncss)

elif not model:
create_model(mw.col, nfront, nback, ncss)
create_model(mw.col, FC2_NAME, nfront, nback, ncss)
else:
backup_files((
(FNAME_FRONT, model["tmpls"][0]["qfmt"]),
Expand All @@ -142,7 +142,7 @@ def update():
msgs += update_model(model, mw.col, nfront, nback, ncss)

if not mmodel:
create_min_model(mw.col, nmfront, nmback, nmcss)
create_min_model(mw.col, FC2_MIN_NAME, nmfront, nmback, nmcss)
else:
backup_files((
(FNAME_MIN_FRONT, mmodel["tmpls"][0]["qfmt"]),
Expand Down
2 changes: 1 addition & 1 deletion src/py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
TAG_CSS_FUNC = "/*-- FC2 FUNCTIONALITY END --*/"

CVER = get_version()
NVER = "1.2.0"
NVER = "1.2.1"

#######################################################################
# Current code base
Expand Down

0 comments on commit 508a124

Please sign in to comment.