diff --git a/lmfdb/ecnf/main.py b/lmfdb/ecnf/main.py index 479ac475bf..ab06e325d3 100644 --- a/lmfdb/ecnf/main.py +++ b/lmfdb/ecnf/main.py @@ -453,8 +453,8 @@ def postprocess(self, row, info, query): poly = coeff_to_poly(db.nf_fields.lookup(row['field_label'], projection='coeffs')) row["field_coeffs"] = poly - # Convert Weierstrass coefficients from string to a list of list of integers - row['ainvs'] = [[ZZ(aj) for aj in ai.split(",")] for ai in row['ainvs'].split(";")] + # Convert Weierstrass coefficients from string to a list of list of rationals + row['ainvs'] = [[QQ(aj) for aj in ai.split(",")] for ai in row['ainvs'].split(";")] return row