add annotation type
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
01a80a6fc2
commit
db34ff3d37
|
@ -200,7 +200,10 @@ def detect_entry_type(doc: dict) -> str:
|
|||
"""Given a dictionary object from either form or json, detect type of post"""
|
||||
|
||||
|
||||
if ('in-reply-to' in doc) or ('u-in-reply-to' in doc):
|
||||
if 'hypothesis-link' in doc:
|
||||
entry_type = "annotation"
|
||||
|
||||
elif ('in-reply-to' in doc) or ('u-in-reply-to' in doc):
|
||||
entry_type = "reply"
|
||||
|
||||
elif ('bookmark-of' in doc) or ('u-bookmark-of' in doc):
|
||||
|
@ -221,6 +224,7 @@ def detect_entry_type(doc: dict) -> str:
|
|||
else:
|
||||
entry_type = "note"
|
||||
|
||||
|
||||
return entry_type
|
||||
|
||||
def capture_frontmatter_props(doc: Dict[str, Union[str, List[str]]], frontmatter: Dict[str, Union[str,List[str]]]):
|
||||
|
|
Loading…
Reference in New Issue