Skip to content

Commit

Permalink
Feat/Disperse siblings among cards rescheduled on another device
Browse files Browse the repository at this point in the history
Essentially, a revert of open-spaced-repetition#434. We can now distinguish between "Set Due Date" and "Reschedule on change".

This is useful even if Desktop Anki < 24.11 because the other device may have Anki 24.11+.
  • Loading branch information
user1823 authored Nov 30, 2024
1 parent fdfbf64 commit 85fa84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def review_cid_remote(local_rids: List[int]):
f"""SELECT DISTINCT cid
FROM revlog
WHERE id NOT IN {local_rid_string}
AND ease > 0
{"AND type != 4" if config.auto_disperse_after_reschedule else "AND ease > 0"}
AND (type < 3 OR factor != 0)
"""
) # type: 0=learn, 1=review, 2=relearn, 3=filtered, 4=manual
) # type: 0=learn, 1=review, 2=relearn, 3=filtered, 4=manual, 5=reschedule
]
return remote_reviewed_cids

Expand Down

0 comments on commit 85fa84f

Please sign in to comment.