misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli
2019-10-23 19:53:23 +02:00
parent 84616827ad
commit d636c2b1f2
2 changed files with 8 additions and 4 deletions

View File

@ -67,6 +67,7 @@ def is_excluded(what):
def on_ui_update(ui):
if UNREAD_MESSAGES > 0:
logging.debug("[grid] unread:%d total:%d" % (UNREAD_MESSAGES, TOTAL_MESSAGES))
ui.on_unread_messages(UNREAD_MESSAGES, TOTAL_MESSAGES)
@ -135,4 +136,4 @@ def on_internet_available(agent):
logging.debug("grid: reporting disabled")
except Exception as e:
logging.error("grid api: %s" % e)
logging.error("grid api: %s" % e)