mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Apply linter formatting
This commit is contained in:
parent
834e2f9304
commit
a691d1750a
1 changed files with 12 additions and 9 deletions
|
@ -65,7 +65,10 @@ def format_html_table(model_stats):
|
|||
"<body>",
|
||||
"<h2>Model Token Usage Summary</h2>",
|
||||
"<table>",
|
||||
"<tr><th>Model Name</th><th class='right'>Total Tokens</th><th class='right'>Percent</th></tr>"
|
||||
(
|
||||
"<tr><th>Model Name</th><th class='right'>Total Tokens</th><th"
|
||||
" class='right'>Percent</th></tr>"
|
||||
),
|
||||
]
|
||||
|
||||
for model, tokens in sorted(model_stats.items(), key=lambda x: x[1], reverse=True):
|
||||
|
@ -77,9 +80,9 @@ def format_html_table(model_stats):
|
|||
)
|
||||
|
||||
html.append(
|
||||
f"<tr><td><strong>TOTAL</strong></td>"
|
||||
"<tr><td><strong>TOTAL</strong></td>"
|
||||
f"<td class='right'><strong>{total_tokens:,}</strong></td>"
|
||||
f"<td class='right'><strong>100.0%</strong></td></tr>"
|
||||
"<td class='right'><strong>100.0%</strong></td></tr>"
|
||||
)
|
||||
|
||||
html.extend(["</table>", "</body>", "</html>"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue