Skip to content

Commit

Permalink
Populate exhibit icon GitHub placeholder if specified but empty (#33)
Browse files Browse the repository at this point in the history
* Check for icon being empty

* Bump version
  • Loading branch information
krassowski authored Jul 5, 2024
1 parent 6c32b6c commit 445de99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jupyterlab_gallery/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _check_updates(self, exhibit):
def get_exhibit_data(self, exhibit):
data = {}

if "icon" not in exhibit:
if "icon" not in exhibit or not exhibit["icon"]:
homepage = exhibit.get("homepage")
if homepage and homepage.startswith("https://github.com/"):
repository_name = extract_repository_name(exhibit["git"])
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-gallery",
"version": "0.3.2",
"version": "0.3.3",
"description": "A JupyterLab gallery extension for presenting and downloading examples from remote repositories",
"keywords": [
"jupyter",
Expand Down

0 comments on commit 445de99

Please sign in to comment.