Skip to content

Commit

Permalink
Exclude manual entries from remote reviews
Browse files Browse the repository at this point in the history
Currently, there is no way to distinguish between "Set Due Date" and "Reschedule on change". So, to prevent undoing the "Set Due Date" used on other devices, we need to exclude all manual entries.

When Anki starts using separate revlog entries to distinguish them, we can re-implement the feature of dispersing siblings among cards rescheduled on other devices.
  • Loading branch information
user1823 authored Jul 7, 2024
1 parent b6746d7 commit 20ab732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def review_cid_remote(local_rids: List[int]):
f"""SELECT DISTINCT cid
FROM revlog
WHERE id NOT IN {local_rid_string}
{"" if config.auto_disperse_after_reschedule else "AND ease > 0"}
AND ease > 0
AND (type < 3 OR factor != 0)
"""
) # type: 0=learn, 1=review, 2=relearn, 3=filtered, 4=manual
Expand Down

0 comments on commit 20ab732

Please sign in to comment.