Skip to content

Commit

Permalink
fix: unicode exposure slugs (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline authored Dec 17, 2024
1 parent 781af8c commit d6a4247
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dbtmetabase/_exposures.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
Sequence,
Tuple,
)
from urllib.parse import unquote

from dbtmetabase.metabase import Metabase

Expand Down Expand Up @@ -109,7 +110,11 @@ def dbname(details: Mapping) -> str:
exclude_personal=not allow_personal_collections
):
collection_name = collection["name"]
collection_slug = collection.get("slug", safe_name(collection["name"]))

if "slug" in collection:
collection_slug = unquote(collection["slug"])
else:
collection_slug = safe_name(collection["name"])

if not collection_filter.match(collection_name):
_logger.debug("Skipping collection '%s'", collection["name"])
Expand Down

0 comments on commit d6a4247

Please sign in to comment.