Ensure each note is unique (correct a bug introduced by add-on "copy note")

AnkiWeb addon 2082040683

Fixes duplicate GUIDs in copied notes so exported decks preserve both the original and copy when imported elsewhere.
AI-generated summary; may contain mistakes.

note-managementbugfix-workaround

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (👍 0 · 👎 0)
Updated
2019-09-26
Anki versions
unknown
License
GPL-3.0 (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, Batchfile
Description language
en

Maintenance

abandoned

  • Last update or commit: 2020-03-29 (2408 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 1 open, 0 closed.
  • Pull requests: 0 open, 0 merged.
  • Median first response: 2 hours (1 answered issues and pull requests).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2019-09-26
History across monthly snapshots

Loading…

Similar addons

Description

This add-on corrects a bug introduced by «copy note». This bug only affect you if you want to export and share a deck which contains a note and a copied by this note before the 26th of septembre 2019.

README

Ensure unique GUID

Rationale

This add-on corrects the consequences of a bug in add-on copy note(1566928056). It may also be useful if anything else has the same bug.

This is not a big bug. It only occurs if you copy a note, export a deck containing the original and the copy, and then import the deck into another collection. If you do this, you'll import only the original or the copy note but not both. Therefore, you should use this add-on to correct the bug before exporting cards.

To use this add-on, you simply need to select «Ensure unique GUID» in the main window.

Technical

For some reason, each note has two identifiers. The note identifier (nid) which is used in most of anki. And a Globally Unique IDentifier (guid), which is used when a note is shared between different collections; i.e. when a deck is shared and imported. The add-on "copy note" did change nid but not guid. This is now changed.

Version 2.0

None

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-unique-GUID
Addon number 2082040683