Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Schedule Data Transfer #4

Open
sweetins opened this issue Dec 21, 2024 · 3 comments
Open

Wrong Schedule Data Transfer #4

sweetins opened this issue Dec 21, 2024 · 3 comments

Comments

@sweetins
Copy link

sweetins commented Dec 21, 2024

I am really not sure what am doing wrong.
I've got two decks (source and target) containing cards of varying notetype.

I have explicitly provided all the requisite information for the interested notetype and more specifically the comparing fields but the wrong schedule info gets transferred. Am using Anki Version ⁨24.11 (87ccd24e)⁩. Any suggestions will be warmly welcomed. Thanks in advance
2024-12-21_010149

@kaCVanime
Copy link
Owner

kaCVanime commented Dec 21, 2024

I've checked the addon still works normally in the 87ccd24e version.

right-click the card and click "Info", does both cards have same value in other props, such as "Position"?

If not, I think the addon transferred another card's info to the second card. what's the value of field Front_m of the second card in the screenshot?

@sweetins
Copy link
Author

sweetins commented Dec 22, 2024

Turned out I just had to "refresh" the browser page for the correct review data to reflect.

There are a few things however...
-Forgetting Curve graphs used to show on the info page of cards but is isn't showing any more
-If I enable Transfer Revision history, I get the following report after a run (Not sure if it causing the above). What follows has been truncated.
Start Processing Group 1 found 2216 studied cards DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197693. target cid: 1734801362490. 8th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197694. target cid: 1734801362492. 8th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197695. target cid: 1734801362494. 4th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197695. target cid: 1734801362494. 7th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197696. target cid: 1734801362496. 12th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197697. target cid: 1734801362498. 7th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197698. target cid: 1734801362500. 19th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197699. target cid: 1734801362502. 24th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197704. target cid: 1734801362507. 13th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197705. target cid: 1734801362509. 16th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197706. target cid: 1734801362511. 11th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197710. target cid: 1734801362517. 11th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197716. target cid: 1734801362525. 6th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197717. target cid: 1734801362527. 21th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197718. target cid: 1734801362529. 10th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197721. target cid: 1734801362533. 17th rev log DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: revlog.id\"))", kind: Other } Transfer revision history failed. src cid: 1719344197722. target cid: 1734801362535. 7th rev log Done

@kaCVanime
Copy link
Owner

That basically means some revision history failed to transfer. Due to the design of anki the addon needs to clone a revision record and modify its time a little bit in milliseconds. If the modifed time still collides with another record in the database then it would fail.

as for the graph i think if there's history for the new card it will show up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants