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