|
22 | 22 | WebSmallDirichletGroup, |
23 | 23 | WebDBDirichletOrbit |
24 | 24 | ) |
25 | | -from lmfdb.characters.ListCharacters import get_character_modulus |
26 | 25 | from lmfdb.characters import characters_page |
27 | 26 | from lmfdb import db |
28 | 27 |
|
@@ -312,24 +311,6 @@ def dirichlet_character_search(info, query): |
312 | 311 | @characters_page.route("/Dirichlet") |
313 | 312 | @characters_page.route("/Dirichlet/") |
314 | 313 | def render_DirichletNavigation(): |
315 | | - try: |
316 | | - if 'modbrowse' in request.args: |
317 | | - arg = request.args['modbrowse'] |
318 | | - arg = arg.split('-') |
319 | | - modulus_start = int(arg[0]) |
320 | | - modulus_end = int(arg[1]) |
321 | | - info = {'args': request.args} |
322 | | - info['title'] = 'Dirichlet characters of modulus ' + str(modulus_start) + '-' + str(modulus_end) |
323 | | - info['bread'] = bread('Modulus') |
324 | | - info['learnmore'] = learn() |
325 | | - headers, entries, rows, cols = get_character_modulus(modulus_start, modulus_end, limit=8) |
326 | | - info['entries'] = entries |
327 | | - info['rows'] = list(range(modulus_start, modulus_end + 1)) |
328 | | - info['cols'] = sorted({r[1] for r in entries}) |
329 | | - return render_template("ModulusList.html", **info) |
330 | | - except (ValueError, IndexError) as err: |
331 | | - flash_error("Error raised in parsing: %s", err) |
332 | | - |
333 | 314 | if request.args: |
334 | 315 | # hidden_search_type for prev/next buttons |
335 | 316 | info = to_dict(request.args, search_array=DirichSearchArray()) |
|
0 commit comments