From 6e1d464b8fc102a21cb00424d47ab87751bddb6b Mon Sep 17 00:00:00 2001 From: John Jones Date: Wed, 21 Aug 2024 19:39:47 -0400 Subject: [PATCH 1/2] Deal with empty search --- lmfdb/modl_galois_representations/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmfdb/modl_galois_representations/main.py b/lmfdb/modl_galois_representations/main.py index c0eff6e3f0..2d376381dc 100644 --- a/lmfdb/modl_galois_representations/main.py +++ b/lmfdb/modl_galois_representations/main.py @@ -64,7 +64,7 @@ def index(): @modlgal_page.route("/Q/") def index_Q(): info = to_dict(request.args, search_array=ModLGalRepSearchArray()) - if len(info) > 1: + if request.args: return modlgal_search(info) title = r"Mod-$\ell$ Galois representations" codomains = ["GL,1,2,1","GL,2,2,1","GL,2,3,1","GL,2,5,1","GSp,4,2,1"] From a9c0ccfc2f676637a6bdb7861027d9c0c0b01b02 Mon Sep 17 00:00:00 2001 From: John Jones Date: Wed, 21 Aug 2024 19:55:18 -0400 Subject: [PATCH 2/2] Fix image of rep in dimension 1 --- lmfdb/modl_galois_representations/web_modlgal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lmfdb/modl_galois_representations/web_modlgal.py b/lmfdb/modl_galois_representations/web_modlgal.py index 87d00c443d..2f07b331a5 100644 --- a/lmfdb/modl_galois_representations/web_modlgal.py +++ b/lmfdb/modl_galois_representations/web_modlgal.py @@ -31,9 +31,11 @@ def image_pretty_with_abstract(image_label, is_surjective, algebraic_group, dime s = _codomain(algebraic_group, dimension, base_ring_order, base_ring_is_field) if is_surjective: return "$" + s + "$" + if dimension==1: + return image_label t = display_knowl('gl2.subgroup_data', title=image_label, kwargs={'label':image_label}) if dimension == 2 else image_label if image_abstract_group: - t += r"$\ \cong$ "+ abstract_group_display_knowl(image_abstract_group) + t += r" $\ \cong$ "+ abstract_group_display_knowl(image_abstract_group) return t def rep_pretty(algebraic_group, dimension, base_ring_order, base_ring_is_field):