33
33
def help ():
34
34
""" Quick help
35
35
"""
36
- print """
36
+ print ( """
37
37
{0} new tag_name (start_value) > default start_value is 0
38
38
{0} add tag_name (value) ("a story") > default value is 1
39
39
{0} total tag_name (start_date) > date format: dd.mm.yyyy or today
@@ -42,7 +42,7 @@ def help():
42
42
{0} delete text (preview) > use preview mode before delete
43
43
{0} tags (all) > show tags (with all info)
44
44
{0} rename tag_name new_tag_name > rename given tag
45
- """ .format (EXECUTABLE_NAME )
45
+ """ .format (EXECUTABLE_NAME ))
46
46
47
47
48
48
def is_valid (tag_name ):
@@ -174,10 +174,10 @@ def total(tag_name=None, start_date=None):
174
174
if parts [2 ] == tag_name :
175
175
if start_date is not None :
176
176
if get_date (parts [0 ].split ("/" )[1 ]) >= start_date :
177
- print nice (line )
177
+ print ( nice (line ) )
178
178
total += float (parts [3 ])
179
179
else :
180
- print nice (line )
180
+ print ( nice (line ) )
181
181
total += float (parts [3 ])
182
182
183
183
log .info ("TOTAL: {}" .format (total ))
@@ -227,21 +227,21 @@ def list(tag_name=None, start_date=None):
227
227
if parts [2 ] == tag_name :
228
228
if start_date is not None :
229
229
if get_date (parts [0 ].split ("/" )[1 ]) >= start_date :
230
- print nice (line )
230
+ print ( nice (line ) )
231
231
232
232
else :
233
233
with open (FILE , 'r' ) as f :
234
234
lines = f .read ().splitlines ()
235
235
for line in lines :
236
236
parts = line .split (" " )
237
237
if parts [2 ] == tag_name :
238
- print nice (line )
238
+ print ( nice (line ) )
239
239
240
240
else :
241
241
with open (FILE , 'r' ) as f :
242
242
lines = f .read ().splitlines ()
243
243
for line in lines :
244
- print line
244
+ print ( line )
245
245
246
246
247
247
def get_tags ():
@@ -270,9 +270,9 @@ def tags(option=None):
270
270
parts = line .split (" " )
271
271
if parts [1 ] == ACTION_NEW :
272
272
if show_all is True :
273
- print line
273
+ print ( line )
274
274
tags .append (parts [2 ])
275
- print ", " .join (tags )
275
+ print ( ", " .join (tags ) )
276
276
277
277
278
278
def edit (old_line = None , new_line = None ):
0 commit comments