Skip to content

Commit

Permalink
Merge pull request #6297 from roed314/bhkssw_old_format
Browse files Browse the repository at this point in the history
Comment old-format BHKSSW code
  • Loading branch information
AndrewVSutherland authored Dec 10, 2024
2 parents fef99a9 + 0574642 commit 9907d4c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lmfdb/elliptic_curves/elliptic_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,13 +994,13 @@ def render_bhkssw():
learnmore = learnmore_list_remove('BHKSSW dataset')
t = 'Balakrishnan-Ho-Kaplan-Spicer-Stein-Watkins elliptic curve database'
bread = [("Datasets", url_for("datasets")), ("BHKSSW dataset", " ")]
if 'filename' in info:
filepath = os.path.join(os.path.expanduser('~/data/bhkssw_ecdb/' + info['filename']))
if os.path.isfile(filepath) and os.access(filepath, os.R_OK):
return send_file(filepath, as_attachment=True)
else:
flash_error('File {} not found'.format(info['filename']))
return redirect(url_for(".render_bhkssw"))
#if 'filename' in info:
# filepath = os.path.join(os.path.expanduser('~/data/bhkssw_ecdb/' + info['filename']))
# if os.path.isfile(filepath) and os.access(filepath, os.R_OK):
# return send_file(filepath, as_attachment=True)
# else:
# flash_error('File {} not found'.format(info['filename']))
# return redirect(url_for(".render_bhkssw"))
# This format was nice, but not possible with the 30-second timeout limitation
#info['files'] = [ # number of curves, size in MB, lower bound, upper bound, filename
# (2249362, 151, "0", r"1 \cdot 10^8", "1e8db.txt"),
Expand Down

0 comments on commit 9907d4c

Please sign in to comment.