mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Accommodate PEP8
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
6c601cfeb8
commit
d746b422bf
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import json
|
|||
# Skip the configuration settings.
|
||||
for line in sys.stdin:
|
||||
if line == '\n':
|
||||
break;
|
||||
break
|
||||
|
||||
# Extract the JSON.
|
||||
doc = ''
|
||||
|
@ -18,7 +18,7 @@ total_active_time = 0
|
|||
j = json.loads(doc)
|
||||
for object in j:
|
||||
line = '"%s",' % object['start']
|
||||
line +='"%s"' % (object['end'] if 'end' in object else '')
|
||||
line += '"%s"' % (object['end'] if 'end' in object else '')
|
||||
|
||||
if 'tags' in object:
|
||||
for tag in object['tags']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue