diff --git a/lmfdb/app.py b/lmfdb/app.py
index a2c3cb531a..073616e0b3 100644
--- a/lmfdb/app.py
+++ b/lmfdb/app.py
@@ -308,32 +308,6 @@ def netloc_redirect():
return redirect(urlunparse(replaced), code=302)
-@cached_function
-def bad_bots_list():
- return [
- elt.lower()
- for elt in [
- "The Knowledge AI",
- "Wolfram",
- "petalbot",
- "Bytespider",
- "Sogou",
- "MJ12bot",
- "Amazonbot",
- "meta",
- "facebook",
- ]
- ]
-
-
-@app.before_request
-def badbot():
- ua = request.user_agent.string.lower()
- for elt in bad_bots_list():
- if elt in ua:
- return render_template("404.html", title='Too many requests'), 429
-
-
def timestamp():
return '[%s UTC]' % time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime())
diff --git a/lmfdb/elliptic_curves/code.yaml b/lmfdb/elliptic_curves/code.yaml
index 271b725ee7..820de91731 100644
--- a/lmfdb/elliptic_curves/code.yaml
+++ b/lmfdb/elliptic_curves/code.yaml
@@ -35,7 +35,7 @@ curve:
sage: E = EllipticCurve({ainvs})
pari: E = ellinit({ainvs})
magma: E := EllipticCurve({ainvs});
- oscar: E = EllipticCurve({ainvs})
+ oscar: E = elliptic_curve({ainvs})
simple_curve:
sage: E.short_weierstrass_model()
diff --git a/lmfdb/groups/abstract/templates/abstract-show-subgroup.html b/lmfdb/groups/abstract/templates/abstract-show-subgroup.html
index e5642609f6..99341f2033 100644
--- a/lmfdb/groups/abstract/templates/abstract-show-subgroup.html
+++ b/lmfdb/groups/abstract/templates/abstract-show-subgroup.html
@@ -13,11 +13,11 @@
Subgroup ($H$) information
{% else %}
{{KNOWL('group.name', title='Description:')}} | not computed |
{% endif %}
- {{KNOWL('group.order',title='Order:')}} | {{info.pos_int_and_factor(seq.subgroup_order)}} |
- {{KNOWL('group.subgroup.index',title='Index:')}} | {{info.pos_int_and_factor(seq.quotient_order)}} |
+ {{KNOWL('group.order',title='Order:')}} | {{info.pos_int_and_factor(seq.subgroup_order) | safe}} |
+ {{KNOWL('group.subgroup.index',title='Index:')}} | {{info.pos_int_and_factor(seq.quotient_order) | safe}} |
{{KNOWL('group.exponent',title='Exponent:')}} |
{% if seq.sub.exponent %}
- {{info.pos_int_and_factor(seq.sub.exponent)}}
+ {{info.pos_int_and_factor(seq.sub.exponent) | safe}}
{% else %}
not computed
{% endif %}
@@ -31,7 +31,7 @@ Subgroup ($H$) information
class:')}} |
{% if seq.sub.G %}
- ${{seq.sub.nilpotency_class}}$
+ ${{seq.sub.nilpotency_class}}$
{% else %}
not computed
{% endif %}
@@ -45,7 +45,7 @@ Subgroup ($H$) information
not computed
{% endif %}
|
-
+
@@ -68,8 +68,8 @@ {{KNOWL('group.ambient', 'Ambient group ($G$) information')}}
{{KNOWL('group.name', title='Description:')}} |
${{seq.ambient_tex}}$ |
- {{KNOWL('group.order',title='Order:')}} | {{info.pos_int_and_factor(seq.ambient_order)}} |
- {{KNOWL('group.exponent',title='Exponent:')}} | {{info.pos_int_and_factor(seq.amb.exponent)}} |
+ {{KNOWL('group.order',title='Order:')}} | {{info.pos_int_and_factor(seq.ambient_order) | safe}} |
+ {{KNOWL('group.exponent',title='Exponent:')}} | {{info.pos_int_and_factor(seq.amb.exponent) | safe}} |
{# Bug in generator Magma code, so hiding for now
{% if seq.amb.solvable %}{{KNOWL('group.presentation', 'Presentation:')}}{% else %}{{KNOWL('group.permutation_gens', 'Generators:')}}{% endif %} |
@@ -95,10 +95,10 @@ Quotient group ($Q$) structure