Skip to content

Commit 3377e74

Browse files
committed
valid matplotlib print_svg keys
apparently not all dublic core terms are supported
1 parent 90a4580 commit 3377e74

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openskistats/analyze.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,12 +719,13 @@ def _create_ski_area_rose(
719719
ski_area_name = info["ski_area_name"]
720720
color_convention = info["osm_run_convention"]
721721

722-
# metadata uses terms from https://www.dublincore.org/specifications/dublin-core/dcmi-terms/
722+
# supported metadata keys listed at
723+
# https://matplotlib.org/stable/api/backend_svg_api.html#matplotlib.backends.backend_svg.FigureCanvasSVG.print_svg
723724
common_metadata = {
724725
"Title": f"Ski Rose for {ski_area_name}",
725726
"Creator": "https://github.com/dhimmel/openskistats",
726727
"Source": f"https://openskimap.org/?obj={ski_area_id}",
727-
"License": "https://creativecommons.org/licenses/by/4.0/",
728+
"Rights": "https://creativecommons.org/licenses/by/4.0/",
728729
}
729730

730731
# plot and save preview rose

0 commit comments

Comments
 (0)