From 7c5980a941f646783b9d3b65389fb80b84df23a9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 15 May 2020 14:24:59 +1000 Subject: [PATCH] <= in modified_after_begin for unit tests --- pylib/anki/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index 03883e3b9..e81f47371 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -174,7 +174,7 @@ class _Collection: # Until we can move away from long-running transactions, the Python # code needs to know if transaction should be committed, so we need # to check if the backend updated the modification time. - return self.db.last_begin_at < self.mod + return self.db.last_begin_at <= self.mod def save( self, name: Optional[str] = None, mod: Optional[int] = None, trx: bool = True