From 65cba4b5e501ea3ffa579ba1aa647d51dde3d244 Mon Sep 17 00:00:00 2001 From: roed314 Date: Wed, 20 Nov 2024 14:43:03 +0000 Subject: [PATCH] autopep8 action fixes --- lmfdb/characters/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lmfdb/characters/main.py b/lmfdb/characters/main.py index d7ef1494dc..f92fd50c7d 100644 --- a/lmfdb/characters/main.py +++ b/lmfdb/characters/main.py @@ -177,6 +177,7 @@ def common_parse(info, query): primitive_orbit = class_to_int(parts_of_label[1])+1 if db.char_dirichlet.count({'modulus':primitive_modulus,'is_primitive':True,'orbit':primitive_orbit}) == 0: raise ValueError("Primitive character orbit not found") + def incompatible(query): cond = query.get('conductor') if cond is None: @@ -185,8 +186,8 @@ def incompatible(query): return cond != primitive_modulus opts = parse_range3(info['conductor'], lower_bound=1, upper_bound=ORBIT_MAX_MOD) for opt in opts: - if (isinstance(opt, int) and opt == primitive_modulus or - not isinstance(opt, int) and opt[0] <= primitive_modulus <= opt[1]): + if (isinstance(opt, int) and opt == primitive_modulus + or not isinstance(opt, int) and opt[0] <= primitive_modulus <= opt[1]): return False return True if incompatible(query):