diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-15 21:25:28 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-15 21:25:28 +0100 |
commit | d6ceb78c829746f54b067c79087eb15d47707ac2 (patch) | |
tree | 61606ebeb526ad844e75100547e0745b52df6c3d /src/common.py | |
parent | 50b4b4989a8a6ec9ecaad32dda23c6dd8347af4f (diff) | |
download | poezio-d6ceb78c829746f54b067c79087eb15d47707ac2.tar.gz poezio-d6ceb78c829746f54b067c79087eb15d47707ac2.tar.bz2 poezio-d6ceb78c829746f54b067c79087eb15d47707ac2.tar.xz poezio-d6ceb78c829746f54b067c79087eb15d47707ac2.zip |
Also parse strings with only seconds properly
Diffstat (limited to 'src/common.py')
-rw-r--r-- | src/common.py | 2 |
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): |