hours: draw `+' before positive adjustments
This commit is contained in:
parent
71a2afefb2
commit
fd768cf878
3
hours
3
hours
@ -159,7 +159,8 @@ def main(argv):
|
|||||||
hours += adj
|
hours += adj
|
||||||
sys.stdout.write(' (%.1f hours)' % hours)
|
sys.stdout.write(' (%.1f hours)' % hours)
|
||||||
if adj != 0.0:
|
if adj != 0.0:
|
||||||
sys.stdout.write(' [%.1f]' % adjustments[iso_spec])
|
sys.stdout.write(
|
||||||
|
' [%s%.1f]' % ('+' if adj > 0.0 else '', adj))
|
||||||
if (iso_spec == now.strftime(ISO_DATE_FMT)
|
if (iso_spec == now.strftime(ISO_DATE_FMT)
|
||||||
and hours < HOURS_PER_DAY):
|
and hours < HOURS_PER_DAY):
|
||||||
sys.stdout.write(', %.1f at %s' % (HOURS_PER_DAY,
|
sys.stdout.write(', %.1f at %s' % (HOURS_PER_DAY,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user