Skip to content

Commit

Permalink
Merge pull request #5810 from jenpaulhus/tempfix
Browse files Browse the repository at this point in the history
Two quick fixes
  • Loading branch information
AndrewVSutherland authored Jan 11, 2024
2 parents 288fb5d + 6136905 commit 9fb67c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lmfdb/groups/abstract/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def auto_gens(label):
if gp.is_null():
flash_error("No group with label %s was found in the database.", label)
return redirect(url_for(".index"))
if gp.aut_gens is None:
if gp.live() or gp.aut_gens is None:
flash_error("The generators for the automorphism group of the group with label %s have not been computed.", label)
return redirect(url_for(".by_label", label=label))
return render_template(
Expand All @@ -761,6 +761,9 @@ def char_table(label):
if gp.is_null():
flash_error("No group with label %s was found in the database.", label)
return redirect(url_for(".index"))
if gp.live():
flash_error("The complex characters for the group with label %s have not been computed.", label)
return redirect(url_for(".by_label", label=label))
if not gp.complex_characters_known:
flash_error("The complex characters for the group with label %s have not been computed.", label)
return redirect(url_for(".by_label", label=label))
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/groups/abstract/web_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,7 @@ def repr_strg(self, other_page=False):
elif rep_type == "PC":
rep_str = "Elements of the group are displayed as words in the generators from the presentation given"
if other_page:
return rep_str + " in the Construction section of this group's <a href='%s'>main page</a>." % url_for(".by_label", self.label)
return rep_str + " in the Construction section of this group's <a href='%s'>main page</a>." % url_for(".by_label", label=self.label)
else:
return rep_str + " above."
elif rep_type in ["GLFp", "GLFq", "GLZN", "GLZq", "GLZ"]:
Expand Down

0 comments on commit 9fb67c7

Please sign in to comment.