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

Fix duplicate card and remove unnecessary <br > tag. #141

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bigshans
Copy link

  1. The core problem is not dealing with conflicting cards.
  2. Issue Multiline swift arrow cards #106 and issue Duplicate cards on Anki #116 are the same problem.

for (let note of notes) { // Force persistance of note's logseq block uuid accross re-index by adding id property to block in logseq
if (!note.properties["id"]) { try { LogseqProxy.Editor.upsertBlockProperty(note.uuid, "id", note.uuid); } catch (e) { console.error(e); } }
}
notes = await sortAsync(notes, async (a) => {
return (await LogseqProxy.Editor.getBlock(a.uuid)).id; // Sort by db/id
});
//scanProgress.increment();
console.log("Notes:", notes);
console.log("Notes:", notes.length);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is logging scheme may potentially cause confusion to other debuggers. It is suggested that this line be reverted.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I reverted it.

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

Successfully merging this pull request may close these issues.

2 participants