Skip to content

Commit

Permalink
fix: πŸ› Fix markdown output
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Dec 3, 2024
1 parent 21cd17a commit 63808f6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions codelimit/commands/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,11 @@ def report_command(path: Path, full: bool, totals: bool, fmt: ReportFormat):
if fmt == ReportFormat.markdown:
print(_report_totals_markdown(scan_totals))
else:
_report_totals_text(scan_totals)
print(ScanResultTable(scan_totals))
else:
_report_units(report, path, full, fmt)


def _report_totals_text(scan_totals: ScanTotals):
table = ScanResultTable(scan_totals)
print(table)


def _report_totals_markdown(st: ScanTotals) -> str:
result = ""
result += (
Expand Down Expand Up @@ -77,7 +72,7 @@ def _report_units(report: Report, path: Path, full: bool, fmt):
report_units = units[0:REPORT_LENGTH]
root = get_root(path)
if fmt == ReportFormat.markdown:
_print_functions_markdown(root, report_units)
print(_print_functions_markdown(root, report_units))
else:
_print_functions_text(root, units, report_units, full)

Expand Down

0 comments on commit 63808f6

Please sign in to comment.