Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _static/drag_drop.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ html[data-theme='dark'] .reset-button {

.reset-button:hover {
background: #00305e;
color: white;
color: white !important;
}

.feedback {
Expand Down
2 changes: 1 addition & 1 deletion quadriga/metadata/create_zenodo_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def create_zenodo_json() -> bool | None:
logger.error("No authors found in metadata.yml")
return False

# description
# description - must exist in metadata or schema checks block it
description = "<p>" + metadata.get("description") + "</p>"

description_base = f"""
Expand Down
8 changes: 4 additions & 4 deletions quadriga/metadata/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,15 +552,15 @@ def get_content_license(metadata: dict) -> str | None:
"""
license_data = metadata.get("license")
if isinstance(license_data, str):
return license_data
return license_data.replace(" ", "-")
if isinstance(license_data, dict) and "content" in license_data:
content = license_data["content"]
if isinstance(content, str):
return content
return content.replace(" ", "-")
if isinstance(content, dict) and "name" in content:
return str(content["name"])
return str(content["name"]).replace(" ", "-")
if isinstance(content, list) and content:
return str(content[0])
return str(content[0]).replace(" ", "-")
return None


Expand Down
Loading