Switch to side-by-side view
--- a/webui.py +++ b/webui.py @@ -84,6 +84,8 @@ return value def timestr(secs, fmt): + if secs == '' or secs is None: + secs = '0' t = time.gmtime(int(secs)) return time.strftime(fmt, t)
--- a/webui.py +++ b/webui.py @@ -84,6 +84,8 @@ return value def timestr(secs, fmt): + if secs == '' or secs is None: + secs = '0' t = time.gmtime(int(secs)) return time.strftime(fmt, t)