From 01e4512c93329fa6a44a2e7cb25347953454f32b Mon Sep 17 00:00:00 2001 From: Yoshi Date: Wed, 20 Sep 2023 20:45:56 +0200 Subject: [PATCH] Fix error when revlog startdate setting is missing --- src/pokemanki/_version.py | 2 +- src/pokemanki/stats.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pokemanki/_version.py b/src/pokemanki/_version.py index f8d1d62..884f761 100644 --- a/src/pokemanki/_version.py +++ b/src/pokemanki/_version.py @@ -37,4 +37,4 @@ Version information """ -__version__ = "1.4.5" +__version__ = "1.4.6" diff --git a/src/pokemanki/stats.py b/src/pokemanki/stats.py index 8aa36c7..11a039b 100644 --- a/src/pokemanki/stats.py +++ b/src/pokemanki/stats.py @@ -66,7 +66,7 @@ def deckStats(deck_ids: List[int]) -> List[Tuple[int, int]]: # result = self.col.db.all("""select id, ivl from cards where did in %s""" % # ids2str(self.col.decks.active())) - global_startdate = get_synced_conf()["global_startdate"] + global_startdate = get_synced_conf().get("global_startdate", 1160006400000) result = [] for cid in cardIds: ivl = cardInterval(mw.col.db, cid, global_startdate)