title property

This commit is contained in:
Dima Gerasimov 2019-05-11 20:47:07 +01:00
parent ad19c3c7dc
commit 4590f9c139

View file

@ -21,9 +21,13 @@ class Entry(NamedTuple):
link: Url link: Url
eid: str eid: str
annotation: Optional[str] annotation: Optional[str]
context: str context: Url
tags: Sequence[str] tags: Sequence[str]
hyp_link: str hyp_link: Url
@property
def title(self):
return self.summary # TODO eh, remove one of them?...
class Page(NamedTuple): class Page(NamedTuple):