chore(api-nodes): switch to credits instead of $ (#11489)

This commit is contained in:
Alexander Piskun
2025-12-27 05:56:52 +02:00
committed by GitHub
parent 0d2e4bdd44
commit 36deef2c57

View File

@@ -430,9 +430,9 @@ def _display_text(
if status:
display_lines.append(f"Status: {status.capitalize() if isinstance(status, str) else status}")
if price is not None:
p = f"{float(price):,.4f}".rstrip("0").rstrip(".")
p = f"{float(price) * 211:,.1f}".rstrip("0").rstrip(".")
if p != "0":
display_lines.append(f"Price: ${p}")
display_lines.append(f"Price: {p} credits")
if text is not None:
display_lines.append(text)
if display_lines: