modification to sync.py
add a guard case to def finish remove redundant blank line of def sanityCheck
This commit is contained in:
parent
a53d85a75a
commit
d8cf779105
@ -120,7 +120,6 @@ select id from notes where mid = ?) limit 1"""
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def sanityCheck(self):
|
def sanityCheck(self):
|
||||||
|
|
||||||
tables=["cards",
|
tables=["cards",
|
||||||
"notes",
|
"notes",
|
||||||
"revlog",
|
"revlog",
|
||||||
@ -161,8 +160,9 @@ select id from notes where mid = ?) limit 1"""
|
|||||||
self.set_last_sync(now)
|
self.set_last_sync(now)
|
||||||
self.increment_usn()
|
self.increment_usn()
|
||||||
self.col.save()
|
self.col.save()
|
||||||
# now is None not happen
|
|
||||||
return now
|
return now
|
||||||
|
# even though that now is None will not happen,have to match a gurad case
|
||||||
|
return None
|
||||||
|
|
||||||
# Chunked syncing
|
# Chunked syncing
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user