# HG changeset patch # User Tuomo Valkonen # Date 1517905820 0 # Node ID a79409c72565baccfb3ee53b6996a516b6a64ba3 # Parent 246190bfd50195464b8e2b76d7e8c6d230b12858 Oops, removed stray reset of menu entry info diff -r 246190bfd501 -r a79409c72565 borgend/ui.py --- a/borgend/ui.py Mon Feb 05 18:34:08 2018 +0000 +++ b/borgend/ui.py Tue Feb 06 08:30:20 2018 +0000 @@ -9,6 +9,7 @@ import datetime import logging import objc +import math from threading import Lock, Timer from . import backup @@ -118,9 +119,8 @@ when=status.when() now=time.time() - if whentendtomorrow: + if twhentendtomorrow: # Display date if scheduled event is after tomorrow whenday=datetime.date.fromtimestamp(when) whenstr='on %s' % twhen.date().isoformat() @@ -146,13 +148,13 @@ twhen=time.localtime(when+30) whenstr='at %02d:%02d' % (twhen.tm_hour, twhen.tm_min) - this_info='' - if 'reason' in status.detail: - this_info=status.detail['reason'] + ' ' + this_info='' + if 'reason' in status.detail: + this_info=status.detail['reason'] + ' ' - when_how_sched= "%s%s %s" % (this_info, status.type, whenstr) + when_how_sched= "%s%s %s" % (this_info, status.type, whenstr) - info=add_info(info, when_how_sched) + info=add_info(info, when_how_sched) elif status.state==backup.State.QUEUED: info=add_info(info, "queued %s" % status.type)