mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
detecting if a given note has a field
This commit is contained in:
parent
7eb2533fca
commit
fe6147e1dc
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ insert or replace into notes values (?,?,?,?,?,?,?,?,?,?,?)""",
|
|||
def __setitem__(self, key, value):
|
||||
self.fields[self._fieldOrd(key)] = value
|
||||
|
||||
def __contains__(self, key):
|
||||
return key in self._fmap.keys()
|
||||
|
||||
# Tags
|
||||
##################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue