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