MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / findInboxUnreadCount

Method findInboxUnreadCount

src/bitmessageqt/__init__.py:1698–1707  ·  view source on GitHub ↗
(self, count=None)

Source from the content-addressed store, hash-verified

1696 self.rerenderTabTreeChans()
1697
1698 def findInboxUnreadCount(self, count=None):
1699 if count is None:
1700 queryreturn = sqlQuery('''SELECT count(*) from inbox WHERE folder='inbox' and read=0''')
1701 cnt = 0
1702 for row in queryreturn:
1703 cnt, = row
1704 self.unreadCount = int(cnt)
1705 else:
1706 self.unreadCount = count
1707 return self.unreadCount
1708
1709 def updateSentItemStatusByToAddress(self, toAddress, textToDisplay):
1710 for sent in [self.ui.tableWidgetInbox, self.ui.tableWidgetInboxSubscriptions, self.ui.tableWidgetInboxChans]:

Callers 3

initTrayIconMethod · 0.95
setTrayIconFileMethod · 0.95
changedInboxUnreadMethod · 0.95

Calls 1

sqlQueryFunction · 0.90

Tested by

no test coverage detected