Skip to content

Commit

Permalink
Slug max length to 30
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed May 7, 2024
1 parent 78d9c18 commit 31f5584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 31f5584

Please sign in to comment.