def adminInfo(self, output=None): return { "stats": getDBStats(True), "plugins": self.plugManager.getPlugins(), "updateOutput": self.filterUpdateField(output), "token": getToken(current_user.id), }
def adminInfo(output=None): return { "stats": getDBStats(True), "plugins": plugManager.getPlugins(), "updateOutput": filterUpdateField(output), "signalPhoneRegistered": getInfo('subscriptions')['registeredPhone'] != '', "watchlistInfos": getInfo('watchlist'), "subscriptionsInfos": getInfo('subscriptions') }
def get(self): """ Get Database info Returns the stats of the database. When the user authenticates, more information is returned. This information includes: <ul> <li> Amount of whitelist and blacklist records </li> <li> Some server settings like the database name </li> <li> Some database information like disk usage </li> </ul> Unauthenticated queries return only collection information. """ return getDBStats()
def adminInfo(output=None): return { "stats": getDBStats(True), "plugins": plugManager.getPlugins(), "updateOutput": filterUpdateField(output), }
def api_dbInfo(self): return getDBStats()
def adminInfo(output=None): return { "stats": getDBStats(True), "updateOutput": filterUpdateField(output) }