mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Revert OrgNode.hasTag func to method instead of property as accepts argument
This commit is contained in:
parent
0109c7bd91
commit
be57c711fd
1 changed files with 7 additions and 8 deletions
|
@ -303,7 +303,13 @@ class Orgnode(object):
|
|||
"""
|
||||
return self._tags
|
||||
|
||||
@property
|
||||
@tags.setter
|
||||
def tags(self, newtags):
|
||||
"""
|
||||
Store all the tags found in the headline.
|
||||
"""
|
||||
self._tags = newtags
|
||||
|
||||
def hasTag(self, tag):
|
||||
"""
|
||||
Returns True if the supplied tag is present in this headline
|
||||
|
@ -312,13 +318,6 @@ class Orgnode(object):
|
|||
"""
|
||||
return tag in self._tags
|
||||
|
||||
@tags.setter
|
||||
def tags(self, newtags):
|
||||
"""
|
||||
Store all the tags found in the headline.
|
||||
"""
|
||||
self._tags = newtags
|
||||
|
||||
@property
|
||||
def todo(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue