mgmeyers / obsidian-zotero-integration

Insert and import citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian.
GNU General Public License v3.0
913 stars 50 forks source link

`isFirstImport` is not consistent/synced in another computer #362

Open Lslightly opened 2 months ago

Lslightly commented 2 months ago

Although #297 uses isFirstImport to avoid repeating problem, the repeating problem when importing from another computer still exists when the note has been synced through git.

isFirstImport in zotero data explorer for the synced item in zotero in another computer remains true although the note has already been created and synced. Is it better to define IsFirstImport by judging whether the note exists to obtain consistency from file system instead of lastImportDate which might not be consistent through distributed system. Or is there something wrong in my settings to sync the lastImportDate?

https://github.com/mgmeyers/obsidian-zotero-integration/blob/f57a9551b2ba6b3090ebaebf41db796765ee980b/src/bbt/export.ts#L578