summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common.py b/src/common.py
index 48613847..fdad77a9 100644
--- a/src/common.py
+++ b/src/common.py
@@ -194,7 +194,7 @@ def replace_key_with_bound(key):
return key
def parse_str_to_secs(duration=''):
- values = {'m': 60, 'h': 3600, 'd': 86400}
+ values = {'s': 1, 'm': 60, 'h': 3600, 'd': 86400}
result = 0
tmp = '0'
for char in duration:
@@ -211,7 +211,6 @@ def parse_str_to_secs(duration=''):
return result
def parse_secs_to_str(duration=0):
- values = {60: 'm', 3600:'h', 86400:'d'}
secs, mins, hours, days = 0, 0, 0, 0
result = ''
secs = duration % 60