Fix the remove deck lead server crash issue #28,

the change intruduced after 3.1.28 f592672fa
This commit is contained in:
cecini 2020-10-30 10:00:00 +08:00
parent f5dca1f1e2
commit 1d73376115

View File

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