Skip to content

Commit

Permalink
Merge pull request #5674 from edgarcosta/Ldir
Browse files Browse the repository at this point in the history
fix by_url_belyi_search_url
  • Loading branch information
edgarcosta authored Oct 18, 2023
2 parents 56b063c + e019687 commit 369e490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lmfdb/belyi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ def by_url_belyi_search_url(smthorlabel):
split = split[:-1]
if len(split) == 1:
return by_url_belyi_search_group(group=split[0])
elif len(split) == 2: # passport
sigma_spl = (split[1]).split('_')

sigma_spl = (split[1]).split('_')
if len(sigma_spl) == 3 and len(split) == 2: # passport
return redirect(
url_for(
".by_url_belyi_passport_label",
Expand All @@ -172,8 +173,7 @@ def by_url_belyi_search_url(smthorlabel):
),
301,
)
elif len(split) == 3: # galmap
sigma_spl = (split[1]).split('_')
elif len(sigma_spl) == 3 and len(split) == 3: # galmap
return redirect(
url_for(
".by_url_belyi_galmap_label",
Expand Down

0 comments on commit 369e490

Please sign in to comment.