Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-or-feature authored Dec 1, 2023
1 parent 7e5a8bd commit f3263dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sample/sample_ticker_rich.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
except ImportError:
print("Rich must be installed for this sample")

FORMAT = "%Y-%m-%d %H:%M:%S"


def main():
logging.basicConfig(level=logging.WARNING)
Expand Down Expand Up @@ -60,7 +62,7 @@ def generate_table(tickers) -> Table:
f"{ticker.day_percent_change_mid:.2f}",
f"{ticker.day_high:.2f}",
f"{ticker.day_low:.2f}",
f"{ticker.timestamp.strftime('%Y-%m-%d %H:%M:%S') if ticker.timestamp else ''}",
f"{ticker.timestamp.strftime(FORMAT) if ticker.timestamp else ''}",
)

return table
Expand Down

0 comments on commit f3263dd

Please sign in to comment.