Add one-way sync trigger for last review time updates in dbcheck

This commit is contained in:
Jarrett Ye 2025-08-04 15:00:19 +08:00
parent 86bbc2c17e
commit 6947afddb6
No known key found for this signature in database
GPG key ID: EBFC55E0C1A352BB

View file

@ -178,6 +178,12 @@ impl Collection {
out.card_position_too_high = new_cards_fixed;
out.card_properties_invalid += other_cards_fixed;
out.card_last_review_time_empty = last_review_time_fixed;
// Trigger one-way sync if last_review_time was updated to avoid conflicts
if last_review_time_fixed > 0 {
self.set_schema_modified()?;
}
Ok(())
}