From bde792101680b706ab79a6f7ffbf95c577b69e9d Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Wed, 30 Dec 2020 10:05:15 +0100 Subject: [PATCH] Fix modal path id for calibre db filepicker Fix SyncToken last-Book-id missing --- cps/services/SyncToken.py | 2 ++ cps/templates/config_edit.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cps/services/SyncToken.py b/cps/services/SyncToken.py index 4ad5fa2c..26eb396c 100644 --- a/cps/services/SyncToken.py +++ b/cps/services/SyncToken.py @@ -144,6 +144,8 @@ class SyncToken: except TypeError: log.error("SyncToken timestamps don't parse to a datetime.") return SyncToken(raw_kobo_store_token=raw_kobo_store_token) + except KeyError: + books_last_id = -1 return SyncToken( raw_kobo_store_token=raw_kobo_store_token, diff --git a/cps/templates/config_edit.html b/cps/templates/config_edit.html index cf3c7bcd..ba8d4f9e 100644 --- a/cps/templates/config_edit.html +++ b/cps/templates/config_edit.html @@ -20,7 +20,7 @@ {% if filepicker %} - + {% endif %}