mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
<= in modified_after_begin for unit tests
This commit is contained in:
parent
46c363d4aa
commit
7c5980a941
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue