Zanki categories are not the same

Before the error happened, I was…
[Replace this text.]

this happened a while back, when I got v12 anki, all the cards got tagged to the anking deck instead of the subdeck it was meant to be in.For example my cardio step 1 cards arent in its own section but its in the main anking deck so there is no chance I can isolate them and review them without doing all my cards that I unsuspended unless I change them manually. is there a way I can revert my cards to go back in its original subdeck without ruining my intervals or anything with my deck.

Error message (don't change this)
Anki 25.02.4 (a5c33ad0)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-14.5-arm64-arm-64bit

Traceback (most recent call last):

  File "/Users/haiderallami/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 99, in sync_with_ankiweb
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "/Users/haiderallami/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "/Users/haiderallami/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 104, in _on_subscriptions_fetched
    sync_state.schema_before_new_decks_installation = collection_schema()

  File "/Users/haiderallami/Library/Application Support/Anki2/addons21/1322529746/main/utils.py", line 704, in collection_schema
    return aqt.mw.col.db.scalar("select scm from col")

AttributeError: 'NoneType' object has no attribute 'scalar'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

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

  File "/Users/haiderallami/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 104, in sync_with_ankiweb
    original_sync_collection_and_media(

  File "aqt.main", line 1110, in _sync_collection_and_media

  File "_aqt.hooks", line 5065, in __call__

  File "/Users/haiderallami/Library/Application Support/Anki2/addons21/759844606/sync_hook.py", line 99, in <lambda>
    sync_will_start.append(lambda: create_comparelog(local_rids))

  File "/Users/haiderallami/Library/Application Support/Anki2/addons21/759844606/sync_hook.py", line 11, in create_comparelog
    local_rids.extend([id for id in mw.col.db.list("SELECT id FROM revlog")])

AttributeError: 'NoneType' object has no attribute 'list'

Sentry link (for developers)

Hello, :slight_smile:

There isn’t a way to automatically revert your subdeck organization aside from restoring from a backup, which would affect your learning progress.

Because the Zanki and AnKing cards share a lineage, they will necessary overwrite each other due to the way that the Anki software works. But, you can organize your collection into subdecks per your preferences which is what most folks end up doing

This tutorial can walk you through an example of what that basic workflow might look like: How to Create Subdecks

Please let me know if that answers your question, and if there’s anything else I can help with. :slight_smile: