Skip to content

Commit 98447b2

Browse files
authored
Merge pull request #6429 from jenpaulhus/nonesense
Update None in search
2 parents 776617d + 9ca5002 commit 98447b2

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

lmfdb/groups/abstract/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,10 @@ def field_knowl(fld):
10481048

10491049
# This function returns a label for the conjugacy class search page for a group
10501050
def display_cc_url(numb,gp):
1051+
if numb is None: # for cases where we didn't compute number
1052+
return 'not computed'
1053+
elif numb > 512: # remove url if conjugacy classes are not stored
1054+
return numb
10511055
return f'<a href = "{url_for(".index", group=gp, search_type="ConjugacyClasses")}">{numb}</a>'
10521056

10531057
class Group_download(Downloader):

lmfdb/groups/abstract/web_groups.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def G(self):
389389
elif isinstance(self._data, GapElement):
390390
return self._data
391391
# Reconstruct the group from the stored data
392-
if self.order == 1 or self.element_repr_type == "PC": # trvial
392+
if self.order == 1 or self.element_repr_type == "PC": # trivial
393393
return self.PCG
394394
else:
395395
if self.element_repr_type == "Lie": #need to take first entry of Lie type
@@ -1213,11 +1213,11 @@ def subgroup_order_bound(self):
12131213
def _subgroup_summary(self, in_profile):
12141214
if self.subgroup_index_bound != 0:
12151215
if self.normal_index_bound is None or self.normal_index_bound == 0:
1216-
return f"All subgroup of index up to {self.subgroup_index_bound} (order at least {self.subgroup_order_bound}) are shown, as well as all normal subgroups of any index. <br>"
1216+
return f"All subgroups of index up to {self.subgroup_index_bound} (order at least {self.subgroup_order_bound}) are shown, as well as all normal subgroups of any index. <br>"
12171217
elif self.normal_order_bound != 0:
1218-
return f"All subgroup of index up to {self.subgroup_index_bound} (order at least {self.subgroup_order_bound}) are shown, as well as normal subgroups of index up to {self.normal_index_bound} or of order up to {self.normal_order_bound}. <br>"
1218+
return f"All subgroups of index up to {self.subgroup_index_bound} (order at least {self.subgroup_order_bound}) are shown, as well as normal subgroups of index up to {self.normal_index_bound} or of order up to {self.normal_order_bound}. <br>"
12191219
else:
1220-
return f"All subgroup of index up to {self.subgroup_index_bound} (order at least {self.subgroup_order_bound}) are shown, as well as normal subgroups of index up to {self.normal_index_bound}. <br>"
1220+
return f"All subgroups of index up to {self.subgroup_index_bound} (order at least {self.subgroup_order_bound}) are shown, as well as normal subgroups of index up to {self.normal_index_bound}. <br>"
12211221
# TODO: add more verbiage here about Sylow subgroups, maximal subgroups, explain when we don't know subgroups up to automorphism/conjugacy, etc
12221222
return ""
12231223

0 commit comments

Comments
 (0)