Show page ranks in scientific notation
This commit is contained in:
parent
bdb9529b77
commit
2fdb600c50
|
@ -20,7 +20,7 @@ def display_top_urls(ranking: dict[httpx.URL, float], top_n: int = 50) -> None:
|
|||
|
||||
# Add rows to the table
|
||||
for idx, (url, score) in enumerate(sorted_urls[:top_n], start=1):
|
||||
table.add_row(str(idx), str(url), f"{score:.18f}")
|
||||
table.add_row(str(idx), str(url), f"{score:.4e}")
|
||||
|
||||
# Render the table
|
||||
console = Console()
|
||||
|
|
Loading…
Reference in a new issue