Skip to content

Commit

Permalink
Fix error when revlog startdate setting is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
zjosua committed Sep 20, 2023
1 parent 04f625a commit 01e4512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pokemanki/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
Version information
"""

__version__ = "1.4.5"
__version__ = "1.4.6"
2 changes: 1 addition & 1 deletion src/pokemanki/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 01e4512

Please sign in to comment.