Skip to content

Commit

Permalink
Only display total duration when it's not a "lazy day"
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Duyé committed May 12, 2014
1 parent 52d34e2 commit f4a1c11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redminetimesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def getTimeEntries(time_entries, verbose=True):
'comment': comment,
'activity_id': activity_id
})
print "\nTotal : {}h".format(total_duration)
if total_duration > 0:
print "\nTotal : {}h".format(total_duration)
return array

def generateXml(time_entries, date):
Expand Down

0 comments on commit f4a1c11

Please sign in to comment.