Keeping Duplicate Cards

When I import new cards from my friends, the cards that he included for our block with Anking deck is not uploaded because it is a duplicate card and already in the collection.

Is there a way to upload all of my friend’s anki cards even though some are duplicates from the Anking Deck that way I have all his cards in one place?

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-14.3-x86_64-i386-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2024-05-16 00:26:10

Traceback (most recent call last):

  File "aqt.taskman", line 122, in _on_closures_pending

  File "aqt.taskman", line 71, in <lambda>

  File "aqt.taskman", line 90, in wrapped_done

  File "aqt.sync", line 119, in on_future_done

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 86, in repl

  File "/Users/holiyanshinesuresh/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 173, in _upload_if_full_sync_triggered_by_ankihub
    server_usn = out.server_media_usn if mw.pm.media_syncing_enabled() else None

AttributeError: 'SyncCollectionResponse' object has no attribute 'server_media_usn'

Sentry link (for developers)

Using this add-on should help you export a duplicate copy of a deck: https://ankiweb.net/shared/info/1779572689

Thank you for this. But I am trying to import cards that may have some duplicates from my Anking deck. Is there a way to still import duplicate cards without having them deleted?

Are you trying to import an AnkiHub deck?

I have Anking cards.

Yes. My friend makes his own anki for class lectures but also adds some from Anking that are relevant. When I import them, the Anking cards are not imported because it’s already in my collection. However, I want to see all the cards my friend imported so I could simply study from his cards.

Is AnkiHub saying some notes were skipped? We don’t currently have an easy solution for importing duplicate notes (notes with the same IDs) but we hope to fix this in the future: