Revert OrgNode.hasTag func to method instead of property as accepts argument

This commit is contained in:
Debanjum Singh Solanky 2022-09-14 02:46:41 +03:00
parent 0109c7bd91
commit be57c711fd

View file

@ -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):
"""