iammraat commited on
Commit
27ef38c
·
verified ·
1 Parent(s): 397edd7

Update core_engine.py

Browse files
Files changed (1) hide show
  1. core_engine.py +2 -8
core_engine.py CHANGED
@@ -2496,15 +2496,9 @@ def format_results_as_md_table(cursor, results):
2496
  detail_view += f"| **{col}** | {str(val).replace('|', '|')} |\n"
2497
  return detail_view
2498
 
2499
- # Build the Markdown Table for multiple results (Truncated to 4 cols)
2500
- header = "| " + " | ".join(col_names) + " |"
2501
- separator = "|" + "|".join(["---" for _ in col_names]) + "|"
2502
 
2503
- # rows = []
2504
- # for r in results:
2505
- # # Slice the row to match the 4 columns
2506
- # display_row = r[:display_limit]
2507
- # rows.append("| " + " | ".join([str(i).replace('|', '|') for i in display_row]) + " |")
2508
  rows = []
2509
  for index, r in enumerate(results):
2510
  display_row = r[:display_limit]
 
2496
  detail_view += f"| **{col}** | {str(val).replace('|', '|')} |\n"
2497
  return detail_view
2498
 
2499
+ header = "| # | " + " | ".join(col_names) + " |"
2500
+ separator = "|---|" + "|".join(["---" for _ in col_names]) + "|"
 
2501
 
 
 
 
 
 
2502
  rows = []
2503
  for index, r in enumerate(results):
2504
  display_row = r[:display_limit]