mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +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
|
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):
|
def hasTag(self, tag):
|
||||||
"""
|
"""
|
||||||
Returns True if the supplied tag is present in this headline
|
Returns True if the supplied tag is present in this headline
|
||||||
@@ -312,13 +318,6 @@ class Orgnode(object):
|
|||||||
"""
|
"""
|
||||||
return tag in self._tags
|
return tag in self._tags
|
||||||
|
|
||||||
@tags.setter
|
|
||||||
def tags(self, newtags):
|
|
||||||
"""
|
|
||||||
Store all the tags found in the headline.
|
|
||||||
"""
|
|
||||||
self._tags = newtags
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def todo(self):
|
def todo(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user