Skip to content

Commit 67957aa

Browse files
Merge pull request #6944 from LMFDB/autopep8-patches
Fixes by autopep8 action
2 parents c4357dd + f5076a2 commit 67957aa

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

lmfdb/bianchi_modular_forms/bianchi_modular_form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ class BMFSearchArray(SearchArray):
707707
jump_prompt = "Label"
708708
jump_knowl = "mf.bianchi.search_input"
709709
has_diagram = False
710-
710+
711711
def __init__(self):
712712
field = TextBox(
713713
name='field_label',

lmfdb/number_fields/number_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ class NFSearchArray(SearchArray):
11771177
jump_knowl = "nf.search_input"
11781178
jump_prompt = "Label, name, or polynomial"
11791179
has_diagram = False
1180-
1180+
11811181
def __init__(self):
11821182
degree = TextBox(
11831183
name="degree",

lmfdb/utils/search_boxes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def _search_again(self, info, search_types):
690690
def search_types(self, info):
691691
# Override this method to change the displayed search buttons
692692
# Diagram button is shown only if info["has_diagram"] is True (set by SearchWrapper)
693-
693+
694694
has_diagram = getattr(self, "has_diagram", True) and (info.get("has_diagram", False) if info else True)
695695
if info is None:
696696
types = [("", f"List of {plural_form(self.noun)}"), ("Random", f"Random {self.noun}")]

lmfdb/utils/search_wrapper.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def _diagram_search(self, info):
363363
Diagram search will be available automatically on pages by default, but can be
364364
disabled by adding 'has_diagram = False' to the relevant SearchArray subclass which handles search.
365365
366-
Additionally, one should pass 'diagram_opts = {}' as keyword argument to the @search_wrap macro,
366+
Additionally, one should pass 'diagram_opts = {}' as keyword argument to the @search_wrap macro,
367367
with options specifying the title, breadcrumbs, and default x/y-axes and color keys, matching numerical
368368
(or in the case of 'color_default', boolean) columns in the database.
369369
"""
@@ -395,7 +395,7 @@ def flatten(L):
395395
result.extend(item)
396396
return result
397397

398-
# Build field mappings from SearchColumns
398+
# Build field mappings from SearchColumns
399399
# This ensures we use database column names rather than search box names
400400
table = self.table
401401
col_types = table.col_type
@@ -406,15 +406,15 @@ def flatten(L):
406406
diagram_fields = {}
407407
for col in columns.columns:
408408
# Use first orig column as the database column name
409-
db_col = col.name if col.name else col.orig[0]
409+
db_col = col.name if col.name else col.orig[0]
410410
# db_col = col.name
411411
if db_col in col_types:
412412
# clean up short titles - get rid of latex
413413
diagram_fields[db_col] = col.short_title.replace("$", "") \
414414
.replace(r"\(", "") \
415415
.replace(r"\)", "") \
416416
.replace("\\", "")
417-
417+
418418
else:
419419
# Fall back to search array boxes if no columns defined
420420
diagram_fields = {box.name: box.short_title for box in
@@ -511,7 +511,7 @@ def set_default(key, opt_key, fallback_fields, fallback_index=0):
511511
col_key = info.get("color")
512512
# Get label_builder from diagram_opts if provided (for nonstandard labeling)
513513
label_builder = opts.get("label_builder")
514-
514+
515515
# Build d3 data
516516
info["d3_data"] = []
517517
for r in res:

0 commit comments

Comments
 (0)