BuryNdays [Official Thread]

anki-BuryNdays

Burying siblings (system built-in function) for one day is not enough? Then bury them for N days.

How does it work?

When you enter a deck, it will bury cards automatically.

You can configure it in deck options.

1 Like

Sounds good. Could you provide a link to it? thanks

https://ankiweb.net/shared/info/1703028231

That looks useful! However, when I enter the deck preview screen, I get this error:

Debug info:
Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-04-10 10:27:03

Caught exception:
Traceback (most recent call last):
  File "aqt.taskman", line 122, in _on_closures_pending
  File "aqt.taskman", line 71, in <lambda>
  File "aqt.taskman", line 90, in wrapped_done
  File "aqt.operations", line 125, in wrapped_done
  File "aqt.deckbrowser", line 129, in <lambda>
  File "aqt.main", line 1212, in onOverview
  File "aqt.main", line 711, in moveToState
  File "aqt.main", line 729, in _overviewState
  File "aqt.overview", line 61, in show
  File "aqt.overview", line 69, in refresh
  File "_aqt.hooks", line 3577, in __call__
  File "C:\Users\jcznk\AppData\Roaming\Anki2\addons21\1703028231\BuryNdays.py", line 49, in autobury
    for cid in mw.col.db.list(dbstr):
  File "anki.dbproxy", line 72, in list
  File "anki.dbproxy", line 61, in _query
  File "anki._backend", line 92, in db_query
  File "anki._backend", line 116, in _db_command
anki.errors.DBError: DbError { info: "SqlInputError { error: Error { code: Unknown, extended_code: 1 }, msg: \"unrecognized token: \\\"{\\\"\", sql: \"SELECT id FROM cards WHERE id != 1681081085886 AND\\n                (nid = 1681081085849 OR nid IN (SELECT id FROM notes WHERE sfld = \\\"Giappone, periodo {{c1::Heisei}} ({{c2::1989}}-{{c3::2019}})<br><br>Il nome significa \\\"{{c4::pace ovunque}}\\\" e rifletteva l'auspicio che il nuovo imperatore portasse un'era di pace e stabilità dopo il turbolento periodo Showa, che vide la partecipazione del Giappone alla Seconda Guerra Mondiale e la sua sconfitta. Durante tale periodo, il Giappone ha affrontato diversi problemi interni ed esterni, come la crisi economica, il disastro di Fukushima e il rinnovamento delle tensioni con la Corea del Nord.<br>L'imperatore {{c5::Akihito}} annunciò la sua abdicazione nel {{c3::2019}} in favore del figlio {{c6::Naruhito}}, e il periodo successivo, dal {{c7::1º maggio 2019}}, è chiamato \\\"{{c8::Reiwa}}\\\", scelto sempre dal governo giapponese.\\\"))\", offset: 221 }", kind: Other }

I guess some symbols (like {{c1::Heisei}}) in your note provoke this error, because my notes don’t contain them. I will test and try to fix it.

It’s already fixed. Turns out it was because I didn’t handle quotation marks.

Thanks for the link
but
when I attempt to install, I get the message
“1703028231: invalid code, or add-on not available for your version of Anki”
I am using Anki version 2.1.45 - is there an incompatibility?

Well, I only tested it under 2.1.61, so I’m not sure what will happen under 2.1.45. If you want to use this, maybe you have to upgrade your anki.

thanks for the clarification