Only don't show empty catalog description
This commit is contained in:
parent
0c0858c4ee
commit
47f31811f9
9
app.py
9
app.py
|
@ -502,10 +502,11 @@ def item_page(item_id):
|
|||
if not catalog and catalog_url:
|
||||
html = get_catalog_url(catalog_url)
|
||||
description = get_description_from_page(html)
|
||||
catalog = {
|
||||
'institution': institution,
|
||||
'description': description,
|
||||
}
|
||||
if description:
|
||||
catalog = {
|
||||
'institution': institution,
|
||||
'description': description,
|
||||
}
|
||||
|
||||
if not catalog and catalog_ids:
|
||||
for property_id in sorted(catalog_ids):
|
||||
|
|
Loading…
Reference in a new issue