-
Notifications
You must be signed in to change notification settings - Fork 6
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
Highlight notes not getting synced #54
Comments
Well, something is wrong here.. If you don't mean Adding a lot of |
Yes, I meant KOReader. I'm sorry, I should've been clear. |
From my understanding, it's testing all pairs of annotations from two (or more) lua files. So most pairs end up not passing the So I don't think it'd add much overhead if we add the note checking/syncing logic (after the above test). |
I feel that you could speed up this function ( |
Yes, you're right.
The sets being the |
Yes. The set of source
That'd be nice. Or I could do it, too. |
From the first look at the code, the change you ask is looking very difficult.
This is easy, but I think is not always ok to do it, since you might want to delete a note.
OK. Perhaps it's better.. |
Created a issue here: koreader/koreader#12957 |
This might be slightly off-topic but can I ask why KoHighlights comapres |
No. The books must be the same and there is a md5checksum check to ensure that. The reason for the |
I see. At least for the new format, maybe it make more sense to check |
Hmm.. This is interesting. I never thought about this test case. |
Symptom
Some highlights' notes don't get synced.
I think this is what happened
datetime
.datetime
.datetime
and thus doesn't try to sync the note.I checked the code and I see it chooses to not sync as long as the highlights have the same
datetime
.KoHighlights/main.py
Lines 2583 to 2585 in 7504ac0
Suggestion
Even if two highlights have the same
datetime
, I want KoHighlights to check the notes and if one of them is empty the non-empty note should be copied. If both have notes then... maybe show a popup window and let the user resolve the conflict.The text was updated successfully, but these errors were encountered: