From 2ca52c339df509977044f60109dcf1966a791ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Mon, 18 Jan 2021 10:33:15 +0100 Subject: [PATCH] Add direct way of retrieving Headline ID . --- org_rw/org_rw.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org_rw/org_rw.py b/org_rw/org_rw.py index a4a98b7..37be9c8 100644 --- a/org_rw/org_rw.py +++ b/org_rw/org_rw.py @@ -271,6 +271,10 @@ class Headline: return "".join(contents).rstrip() + @property + def id(self): + return self.get_property("ID") + @property def clock(self): times = []