Skip to content

Commit a696823

Browse files
committed
Test functionality with existing thumbnail link
1 parent 40cc1f0 commit a696823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resource_catalogue_fastapi/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ async def get_thumbnail(collection: str, item: str):
327327
item_response.raise_for_status()
328328
item_data = item_response.json()
329329

330-
thumbnail_link = item_data.get("assets").get("external_thumbnail")
330+
# TODO: change to external thumbnail link after testing
331+
thumbnail_link = item_data.get("assets").get("thumbnail")
331332
if not thumbnail_link:
332333
raise HTTPException(status_code=404, detail="External thumbnail link not found in item")
333334

0 commit comments

Comments
 (0)