mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 05:13:01 +00:00
Remove -USD suffix from crypto symbol display
This commit is contained in:
@@ -431,7 +431,8 @@ class StockManager:
|
|||||||
int(self.display_manager.regular_font.size))
|
int(self.display_manager.regular_font.size))
|
||||||
|
|
||||||
# Calculate text dimensions for proper spacing
|
# Calculate text dimensions for proper spacing
|
||||||
symbol_text = symbol
|
display_symbol = symbol.replace('-USD', '') if is_crypto else symbol
|
||||||
|
symbol_text = display_symbol
|
||||||
price_text = f"${price:.2f}"
|
price_text = f"${price:.2f}"
|
||||||
change_text = f"{change:+.2f} ({change_percent:+.1f}%)"
|
change_text = f"{change:+.2f} ({change_percent:+.1f}%)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user