mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
forget deletions in integrity check
This commit is contained in:
parent
35fc4fbd3f
commit
85c72a9ddb
2 changed files with 6 additions and 1 deletions
|
@ -1381,6 +1381,11 @@ select id from fields where factId not in (select id from facts)""")
|
||||||
for cm in cms:
|
for cm in cms:
|
||||||
self.updateCardsFromModel(cm)
|
self.updateCardsFromModel(cm)
|
||||||
self.s.expunge(cm)
|
self.s.expunge(cm)
|
||||||
|
# forget all deletions
|
||||||
|
self.s.statement("delete from cardsDeleted")
|
||||||
|
self.s.statement("delete from factsDeleted")
|
||||||
|
self.s.statement("delete from modelsDeleted")
|
||||||
|
self.s.statement("delete from mediaDeleted")
|
||||||
# mark everything changed to force sync
|
# mark everything changed to force sync
|
||||||
self.s.flush()
|
self.s.flush()
|
||||||
self.s.statement("update cards set modified = :t", t=time.time())
|
self.s.statement("update cards set modified = :t", t=time.time())
|
||||||
|
|
|
@ -727,7 +727,7 @@ class HttpSyncServerProxy(SyncServer):
|
||||||
self.password = passwd
|
self.password = passwd
|
||||||
self.syncURL="http://anki.ichi2.net/sync/"
|
self.syncURL="http://anki.ichi2.net/sync/"
|
||||||
#self.syncURL="http://anki.ichi2.net:5001/sync/"
|
#self.syncURL="http://anki.ichi2.net:5001/sync/"
|
||||||
#self.syncURL="http://localhost/sync/"
|
#self.syncURL="http://localhost:8001/sync/"
|
||||||
self.protocolVersion = 2
|
self.protocolVersion = 2
|
||||||
|
|
||||||
def connect(self, clientVersion=""):
|
def connect(self, clientVersion=""):
|
||||||
|
|
Loading…
Reference in a new issue