Remove repetition in link entity to dbhtml converter

This commit is contained in:
Thibaud Colas 2018-01-17 10:58:36 +02:00
parent b31260a501
commit 672e7090f0

View file

@ -21,7 +21,7 @@ def link_entity(props):
if id_ is not None:
link_props['linktype'] = 'page'
link_props['id'] = props.get('id')
link_props['id'] = id_
else:
link_props['href'] = props.get('url')