[Bug] Export/Import deck options not working

I have an issue very similar to this thread, where deck options/presets are not imported with the .apkg file:

I’m using
Version ⁨23.12.1 (1a1d4d54)⁩
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1

Deck options are not imported on a test deck.

Steps to reproduce:

  1. Create a deck with several cards (Basic note type) and update the deck options to use a new preset with 1 new card/day.

  2. Export deck as .apkg with “Include deck presets” and “Include media” checked.
    image

  3. Create a new profile and import the .apkg file with “Import any deck presets” checked.

  4. Result: No deck presets have been imported, it just uses the defaults.

Additional information
If I export and import the deck with scheduling information included, in addition to the other options noted above, the deck name “testdeck” and preset “1perday” are correctly imported to the new profile’s collection. Is there a bug in the logic for these switches, where one doesn’t work without the other?

If anyone has any other workarounds to enable the correct behaviour, please let me know.
Also, is there some way to inspect the .apkg file to see if the export has correctly included the deck preset information?

I’m not able to reproduce it. Can you share the deck?

See two attached files, one with scheduling information and one without.

@dae The issue appears when exporting the Default deck (The skip_default=true case in gather_decks())

Thanks @abdo, logged on [Bug] Export/Import deck options not working when using default options group · Issue #3023 · ankitects/anki · GitHub

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.