Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 31f5584

Browse files
committed
Slug max length to 30
1 parent 78d9c18 commit 31f5584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/routes/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def post_source(source: Sources.Post, user_has_access: bool = Depends(has_
116116
async_session = get_async_session(engine)
117117

118118
if source.slug is None:
119-
source.slug = re.sub(r"\W", "_", slugify(source.name, max_length=10))
119+
source.slug = re.sub(r"\W", "_", slugify(source.name, max_length=30))
120120
source.primary_table = source.slug + "_polygons"
121121

122122
async with async_session() as session:

0 commit comments

Comments
 (0)