From b26e125cbd3c683089f4f357e7256c3bfd781d78 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 16 Jun 2021 18:49:50 +1000 Subject: [PATCH] fix 'set due date' not being remembered in browser https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/19 --- pylib/anki/scheduler/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/scheduler/base.py b/pylib/anki/scheduler/base.py index 237ea3f62..a5f1de60c 100644 --- a/pylib/anki/scheduler/base.py +++ b/pylib/anki/scheduler/base.py @@ -168,7 +168,7 @@ select id from cards where did in %s and queue = {QUEUE_TYPE_REV} and due <= ? l `days` can be of the form '5' or '5..7' If `config_key` is provided, provided days will be remembered in config.""" key: Optional[Config.String] - if config_key: + if config_key is not None: key = Config.String(key=config_key) else: key = None