summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-15 21:25:28 +0100
committermathieui <mathieui@mathieui.net>2011-11-15 21:25:28 +0100
commitd6ceb78c829746f54b067c79087eb15d47707ac2 (patch)
tree61606ebeb526ad844e75100547e0745b52df6c3d
parent50b4b4989a8a6ec9ecaad32dda23c6dd8347af4f (diff)
downloadpoezio-d6ceb78c829746f54b067c79087eb15d47707ac2.tar.gz
poezio-d6ceb78c829746f54b067c79087eb15d47707ac2.tar.bz2
poezio-d6ceb78c829746f54b067c79087eb15d47707ac2.tar.xz
poezio-d6ceb78c829746f54b067c79087eb15d47707ac2.zip
Also parse strings with only seconds properly
-rw-r--r--src/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.py b/src/common.py
index 226780bc..48613847 100644
--- a/src/common.py
+++ b/src/common.py
@@ -206,6 +206,8 @@ def parse_str_to_secs(duration=''):
tmp = '0'
else:
result += int(tmp)
+ if tmp != '0':
+ result += int(tmp)
return result
def parse_secs_to_str(duration=0):