diff --git a/src/c3nav/mapdata/management/commands/importhub.py b/src/c3nav/mapdata/management/commands/importhub.py index 7bb15e56..909a3349 100644 --- a/src/c3nav/mapdata/management/commands/importhub.py +++ b/src/c3nav/mapdata/management/commands/importhub.py @@ -76,7 +76,7 @@ class Command(BaseCommand): } for item in items: - item.slug = item.slug.lower() + item.slug = item.slug.lower().replace('_', '-') if item.polygons is None and item.location is None: print(f"SKIPPING: {item.slug} / {item.id} has no polygon or location")