mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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)
|
self._update_cache(notetype)
|
||||||
except NotFoundError:
|
except NotFoundError:
|
||||||
return None
|
return None
|
||||||
return notetype
|
return copy.deepcopy(notetype)
|
||||||
|
|
||||||
def all(self) -> list[NotetypeDict]:
|
def all(self) -> list[NotetypeDict]:
|
||||||
"Get all models."
|
"Get all models."
|
||||||
|
|
Loading…
Reference in a new issue