mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
catch large # of reviews in full sync, reduce limit to 500
This commit is contained in:
parent
1e7cae5202
commit
27732e3553
1 changed files with 10 additions and 1 deletions
11
anki/sync.py
11
anki/sync.py
|
@ -907,7 +907,16 @@ and cards.id in %s""" % ids2str([c[0] for c in cards])))
|
|||
return True
|
||||
for sum in sums:
|
||||
for l in sum.values():
|
||||
if len(l) > 1000:
|
||||
if len(l) > 500:
|
||||
return True
|
||||
if self.deck.s.scalar(
|
||||
"select count() from reviewHistory where time > :ls",
|
||||
ls=self.deck.lastSync) > 500:
|
||||
return True
|
||||
lastDay = date.fromtimestamp(max(0, self.deck.lastSync - 60*60*24))
|
||||
if self.deck.s.scalar(
|
||||
"select count() from stats where day >= :day",
|
||||
day=lastDay) > 100:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue