Merge pull request #48 from cecini/remdeckcrash

Fix the remove deck lead server crash issue #28
This commit is contained in:
Vikash Kothary 2020-11-15 21:02:25 +00:00 committed by GitHub
commit b3cf7ce5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ from notes where %s""" % lim, self.maxUsn)
self.col.remCards(graves['cards'], notes=False) self.col.remCards(graves['cards'], notes=False)
# and decks # and decks
for oid in graves['decks']: for oid in graves['decks']:
self.col.decks.rem(oid, childrenToo=False) self.col.decks.rem(oid)
self.col.server = False self.col.server = False