Back

Mighty Morphin Morphology

Quote:In morph/main.py on or around line 44 you need to change:
If it helps anyone, for me that was on line 38.

I then had to go to util.py and amend line 48:

From: return cfgMod.default[key]
To: return cfgMod.default.get( key )

So the cfg method look like this:
Code:
def cfg( modelId, deckId, key ):
    assert cfgMod, 'Tried to use cfgMods before profile loaded'
    profile = mw.pm.name
    model = mw.col.models.get( modelId )[ 'name' ] if modelId else None
    deck = mw.col.decks.get( deckId )[ 'name' ] if deckId else None
    if key in cfgMod.deck_overrides.get( deck, [] ):
        return cfgMod.deck_overrides[ deck ][ key ]
    elif key in cfgMod.model_overrides.get( model, [] ):
        return cfgMod.model_overrides[ model ][ key ]
    elif key in cfgMod.profile_overrides.get( profile, [] ):
        return cfgMod.profile_overrides[ profile ][ key ]
    else:
        return cfgMod.default.get( key )
This should satisfy "and not C('analyze')"

After these steps my "known morphenes" increased by ~200. I had about ~100 reviewed cards of the type I added the 'analyze' key to.
Reply

Messages In This Thread