Skip to content

Commit 58677d3

Browse files
committed
Fix Alert price formating & Template UI fix
1 parent 38c936a commit 58677d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

exchange_radar/web/src/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def rows(cls, trade_symbol: str) -> dict[str, list[str]]:
119119
"rows": [
120120
f"{datetime.fromtimestamp(item.time_ts)} | "
121121
f"{trade_symbol.ljust(4)} | "
122-
f"{f'{item.price:,.2f} {item.currency.rjust(4)}'.rjust(21, ' ')} | "
122+
f"{f'{item.price:,.8f} {item.currency.rjust(4)}'.rjust(16 + 5, ' ')} | "
123123
f"{item.message}"
124124
for item in query
125125
]

exchange_radar/web/templates/alerts.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
<div class="padded">
2626
<!-- box 1 content -->
2727
<pre>
28-
----------------------------------------------------------------------------------------------------------------------------------------
28+
-----------------------------------------------------------------------------------
2929
<b>DATETIME UTC | COIN | PRICE | ALERT</b>
30-
----------------------------------------------------------------------------------------------------------------------------------------
30+
-----------------------------------------------------------------------------------
3131
<span id="messages"></span>
3232

3333

0 commit comments

Comments
 (0)