From be57c711fdbaf814e816804f07f80f8d56b38baf Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 14 Sep 2022 02:46:41 +0300 Subject: [PATCH] Revert OrgNode.hasTag func to method instead of property as accepts argument --- src/processor/org_mode/orgnode.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/processor/org_mode/orgnode.py b/src/processor/org_mode/orgnode.py index 1853c84b..a5f4cd43 100644 --- a/src/processor/org_mode/orgnode.py +++ b/src/processor/org_mode/orgnode.py @@ -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): """