mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Return a copy of note type in ModelManager.get()
This commit is contained in:
parent
14dc979e44
commit
04ef186336
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ class ModelManager(DeprecatedNamesMixin):
|
|||
self._update_cache(notetype)
|
||||
except NotFoundError:
|
||||
return None
|
||||
return notetype
|
||||
return copy.deepcopy(notetype)
|
||||
|
||||
def all(self) -> list[NotetypeDict]:
|
||||
"Get all models."
|
||||
|
|
Loading…
Reference in a new issue