Wrap long line
This commit is contained in:
parent
5bcad6a305
commit
4e39644b00
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ def log_step(text, utc_start, end_section=False):
|
||||||
"""
|
"""
|
||||||
eastern = timezone('US/Eastern')
|
eastern = timezone('US/Eastern')
|
||||||
start = utc_start.astimezone(eastern)
|
start = utc_start.astimezone(eastern)
|
||||||
timelog_path = 'log/' + str(start.year) + '-' + format(start.month, '02') + '-' + format(start.day, '02') + '.log'
|
timelog_path = 'log/' + str(start.year) + '-' \
|
||||||
|
+ format(start.month, '02') + '-' \
|
||||||
|
+ format(start.day, '02') + '.log'
|
||||||
timelog_file = Path(timelog_path)
|
timelog_file = Path(timelog_path)
|
||||||
timelog_file.touch(exist_ok=True)
|
timelog_file.touch(exist_ok=True)
|
||||||
with timelog_file.open('a') as timelog:
|
with timelog_file.open('a') as timelog:
|
||||||
|
|
Loading…
Reference in a new issue