Don't include bad state in one line output
This commit is contained in:
parent
1a5ed90fc1
commit
4638c710d5
|
@ -146,7 +146,4 @@ class Index:
|
||||||
@property
|
@property
|
||||||
def one_line(self) -> str:
|
def one_line(self) -> str:
|
||||||
"""Index name, price and price change."""
|
"""Index name, price and price change."""
|
||||||
return (
|
return f"{self.title}: {self.price} ({self.percent_change}%) {self.timestamp}"
|
||||||
f"{self.title}: {self.price} ({self.percent_change}%) "
|
|
||||||
+ f"{self.state} {self.timestamp}"
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in a new issue