From 31f5584645bdaa4ea6aa1b98c4fe1a98a510f24d Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Tue, 7 May 2024 16:12:53 -0500 Subject: [PATCH] Slug max length to 30 --- api/routes/sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routes/sources.py b/api/routes/sources.py index 3fdb019..9f7f719 100644 --- a/api/routes/sources.py +++ b/api/routes/sources.py @@ -116,7 +116,7 @@ async def post_source(source: Sources.Post, user_has_access: bool = Depends(has_ async_session = get_async_session(engine) if source.slug is None: - source.slug = re.sub(r"\W", "_", slugify(source.name, max_length=10)) + source.slug = re.sub(r"\W", "_", slugify(source.name, max_length=30)) source.primary_table = source.slug + "_polygons" async with async_session() as session: