mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Revert OrgNode.hasTag func to method instead of property as accepts argument
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user