Skip to content

Commit

Permalink
fixed repr for no results
Browse files Browse the repository at this point in the history
  • Loading branch information
Nschanche committed Feb 5, 2024
1 parent 2b84732 commit fef6325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/newlk_search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _add_columns(self):
def __repr__(self, html=False):
len_str = f"SearchResult containing {len(self.table)} data products. \n\n"
if len(self.table) == 0:
return (len_str + pd.DataFrame(columns = REPR_COLUMNS_BASE).to_string())
return len_str
columns = REPR_COLUMNS_BASE
if self.display_extra_columns is not None:
columns = REPR_COLUMNS_BASE + self.display_extra_columns
Expand Down

0 comments on commit fef6325

Please sign in to comment.