@@ -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