From f4a1c1135fbb99391b53886c8be07846720b96cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Duy=C3=A9?= Date: Mon, 12 May 2014 16:11:18 +0200 Subject: [PATCH] Only display total duration when it's not a "lazy day" --- redminetimesync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/redminetimesync.py b/redminetimesync.py index 204039f..937eeec 100755 --- a/redminetimesync.py +++ b/redminetimesync.py @@ -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):