Skip to content

Commit

Permalink
Fix typing and string formating (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-ab committed Jul 30, 2020
1 parent 84f6020 commit 9d77c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensortrade/environments/render/base_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def __init__(self):

def _create_log_entry(self, episode: int = None, max_episodes: int = None,
step: int = None, max_steps: int = None,
date_format='%Y-%m-%d %H:%M:%S %p'):
log_entry = '[{}]'.format(datetime.now().strftime(date_format))
date_format: str='%Y-%m-%d %H:%M:%S %p'):
log_entry = f'[{datetime.now().strftime("%Y-%m-%d %H:%M:%S %p")}]'

if episode is not None:
log_entry += f' Episode: {episode + 1}' + (f'/{max_episodes}' if max_episodes else '')
Expand Down

0 comments on commit 9d77c0b

Please sign in to comment.