From ea359b87a829c36b7d453d72d3e67ca8404d3ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Mon, 2 Sep 2024 20:09:30 +0200 Subject: [PATCH] fix pycodestyle E111 and E222 --- lmfdb/elliptic_curves/elliptic_curve.py | 23 ++++++++++++----------- lmfdb/elliptic_curves/web_ec.py | 2 +- lmfdb/groups/abstract/main.py | 4 ++-- lmfdb/groups/abstract/verify.py | 20 ++++++++++---------- lmfdb/groups/abstract/web_groups.py | 21 ++++++++++----------- lmfdb/modl_galois_representations/main.py | 5 ++++- lmfdb/modular_curves/web_curve.py | 2 +- 7 files changed, 40 insertions(+), 37 deletions(-) diff --git a/lmfdb/elliptic_curves/elliptic_curve.py b/lmfdb/elliptic_curves/elliptic_curve.py index 14eb87b237..5037fb97ae 100644 --- a/lmfdb/elliptic_curves/elliptic_curve.py +++ b/lmfdb/elliptic_curves/elliptic_curve.py @@ -764,21 +764,22 @@ def render_curve_webpage_by_label(label): code = data.code() code['show'] = {'magma':'','pari':'','sage':'','oscar':''} # use default show names learnmore_curve_picture = ('Picture description', url_for(".curve_picture_page")) - T = render_template("ec-curve.html", - properties=data.properties, - data=data, - # set default show names but actually code snippets are filled in only when needed - code=code, - bread=data.bread, title=data.title, - friends=data.friends, - downloads=data.downloads, - KNOWL_ID="ec.q.%s"%lmfdb_label, - BACKUP_KNOWL_ID="ec.q.%s"%data.lmfdb_iso, - learnmore=learnmore_list_add(*learnmore_curve_picture)) + T = render_template("ec-curve.html", + properties=data.properties, + data=data, + # set default show names but actually code snippets are filled in only when needed + code=code, + bread=data.bread, title=data.title, + friends=data.friends, + downloads=data.downloads, + KNOWL_ID="ec.q.%s"%lmfdb_label, + BACKUP_KNOWL_ID="ec.q.%s"%data.lmfdb_iso, + learnmore=learnmore_list_add(*learnmore_curve_picture)) ec_logger.debug("Total walltime: %ss"%(time.time() - t0)) ec_logger.debug("Total cputime: %ss"%(cputime(cpt0))) return T + @ec_page.route("/data/