Skip to content

Commit

Permalink
fix thumbnail access id bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Nov 14, 2023
1 parent 12d94db commit 9cda643
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bbconf/bbconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ def get_thumbnail_uri(
record_type: Literal["bed", "bedset"],
record_id: str,
result_id: str,
access_id: str = "http"
) -> str:
"""
Create URL to access a bed- or bedset-associated thumbnail
Expand All @@ -597,7 +598,7 @@ def get_thumbnail_uri(

try:
result = self.get_result(record_type, record_id, result_id)
return self.get_prefixed_uri(result["thumbnail_path"], "http")
return self.get_prefixed_uri(result["thumbnail_path"], access_id)
except KeyError:
_LOGGER.error(
f"Thumbnail for {record_type} {record_id} {result_id} is not defined."
Expand Down

0 comments on commit 9cda643

Please sign in to comment.