Can Anki have notes with duplicate IDs which are timestamps?

Dear Anki Community,

Thank you very much for the project.

May anyone tell if Anki can create a note with an ID which already exists?
For example, aqt.editor.Editor.note.id.

Best and kind regards

I believe there’s a duplicate check before a note is created, and if the note already exists it will choose note_id + 1 instead.

2 Likes

Perhaps, but I haven’t found that in sources, yet. The main reason, I don’t know where to search. Where is the new note creation process located in the sources?

I think the relevant part is this:

3 Likes