Skip to content

Commit

Permalink
Merge pull request #6314 from LMFDB/main
Browse files Browse the repository at this point in the history
main -> dev
  • Loading branch information
AndrewVSutherland authored Jan 4, 2025
2 parents d77396a + 65713a6 commit 420c43a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 70 deletions.
6 changes: 3 additions & 3 deletions lmfdb/abvar/fq/test_av.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def test_download_curves(self):
page = self.tc.get('Variety/Abelian/Fq/download_curves/2.19.ae_w', follow_redirects=True)
assert 'y^2=3*x^6+18*x^5+15*x^4+12*x^3+x^2+5*x+18' in page.get_data(as_text=True)

page = self.tc.get('Variety/Abelian/Fq/3.17.d_b_act', follow_redirects=True)
page = self.tc.get('Variety/Abelian/Fq/5/3/ac_e_ai_v_abl', follow_redirects=True)
assert 'Curves to text' not in page.get_data(as_text=True)

page = self.tc.get('Variety/Abelian/Fq/download_curves/3.17.d_b_act', follow_redirects=True)
assert 'No curves for abelian variety isogeny class 3.17.d_b_act' in page.get_data(as_text=True)
page = self.tc.get('Variety/Abelian/Fq/download_curves/5.3.ac_e_ai_v_abl', follow_redirects=True)
assert 'No curves for abelian variety isogeny class 5.3.ac_e_ai_v_abl' in page.get_data(as_text=True)
73 changes: 6 additions & 67 deletions lmfdb/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,112 +461,53 @@ def search():
def modular_forms():
t = 'Modular forms'
b = [(t, url_for('modular_forms'))]
# lm = [('History of modular forms', '/ModularForm/history')]
return render_template('single.html', title=t, kid='mf.about', bread=b) # , learnmore=lm)

# @app.route("/ModularForm/history")


def modular_forms_history():
t = 'Modular forms'
b = [(t, url_for('modular_forms'))]
b.append(('History', url_for("modular_forms_history")))
return render_template(_single_knowl, title="A brief history of modular forms", kid='mf.gl2.history', body_class=_bc, bread=b)
return render_template('single.html', title=t, kid='mf.about', bread=b)


@app.route('/Variety')
@app.route('/Variety/')
def varieties():
t = 'Varieties'
b = [(t, url_for('varieties'))]
# lm = [('History of varieties', '/Variety/history')]
return render_template('single.html', title=t, kid='varieties.about', bread=b) # , learnmore=lm)

# @app.route("/Variety/history")


def varieties_history():
t = 'Varieties'
b = [(t, url_for('varieties'))]
b.append(('History', url_for("varieties_history")))
return render_template(_single_knowl, title="A brief history of varieties", kid='ag.variety.history', body_class=_bc, bread=b)
return render_template('single.html', title=t, kid='varieties.about', bread=b)


@app.route('/Field')
@app.route('/Field/')
def fields():
t = 'Fields'
b = [(t, url_for('fields'))]
# lm = [('History of fields', '/Field/history')]
return render_template('single.html', kid='field.about', title=t, body_class=_bc, bread=b) # , learnmore=lm)

# @app.route("/Field/history")


def fields_history():
t = 'Fields'
b = [(t, url_for('fields'))]
b.append(('History', url_for("fields_history")))
return render_template(_single_knowl, title="A brief history of fields", kid='field.history', body_class=_bc, bread=b)
return render_template('single.html', kid='field.about', title=t, body_class=_bc, bread=b)


@app.route('/Representation')
@app.route('/Representation/')
def representations():
t = 'Representations'
b = [(t, url_for('representations'))]
# lm = [('History of representations', '/Representation/history')]
return render_template('single.html', kid='repn.about', title=t, body_class=_bc, bread=b) # , learnmore=lm)

# @app.route("/Representation/history")


def representations_history():
t = 'Representations'
b = [(t, url_for('representations'))]
b.append(('History', url_for("representations_history")))
return render_template(_single_knowl, title="A brief history of representations", kid='repn.history', body_class=_bc, bread=b)
return render_template('single.html', kid='repn.about', title=t, body_class=_bc, bread=b)


@app.route('/Motive')
@app.route('/Motive/')
def motives():
t = 'Motives'
b = [(t, url_for('motives'))]
# lm = [('History of motives', '/Motives/history')]
return render_template('single.html', kid='motives.about', title=t, body_class=_bc, bread=b) # , learnmore=lm)

# @app.route("/Motives/history")


def motives_history():
t = 'Motives'
b = [(t, url_for('motives'))]
b.append(('History', url_for("motives_history")))
return render_template(_single_knowl, title="A brief history of motives", kid='motives.history', body_class=_bc, bread=b)
return render_template('single.html', kid='motives.about', title=t, body_class=_bc, bread=b)


@app.route('/Group')
@app.route('/Group/')
def groups():
t = 'Groups'
b = [(t, url_for('groups'))]
# lm = [('History of groups', '/Group/history')]
return render_template('single.html', kid='group.about', title=t, body_class=_bc, bread=b) # , learnmore=lm)

# @app.route("/Group/history")
return render_template('single.html', kid='group.about', title=t, body_class=_bc, bread=b)

@app.route('/datasets')
@app.route('/datasets/')
def datasets():
return render_template('datasets.html', title='Auxiliary datasets', bread=[("Datasets", " ")])

def groups_history():
t = 'Groups'
b = [(t, url_for('groups'))]
b.append(('History', url_for("groups_history")))
return render_template(_single_knowl, title="A brief history of groups", kid='group.history', body_class=_bc, bread=b)


@app.route("/editorial-board")
@app.route("/management-board")
Expand Down Expand Up @@ -803,7 +744,6 @@ def WhiteListedRoutes():
'L/contents',
'L/degree',
'L/download',
'L/history',
'L/interesting',
'L/lhash',
'L/rational',
Expand All @@ -823,7 +763,6 @@ def WhiteListedRoutes():
'acknowledgment',
'alive',
'api',
#'api2',
'bigpicture',
'callback_ajax',
'citation',
Expand Down

0 comments on commit 420c43a

Please sign in to comment.