Пример #1
0
 def adminInfo(self, output=None):
     return {
         "stats": getDBStats(True),
         "plugins": self.plugManager.getPlugins(),
         "updateOutput": self.filterUpdateField(output),
         "token": getToken(current_user.id),
     }
Пример #2
0
def adminInfo(output=None):
    return {
        "stats": getDBStats(True),
        "plugins": plugManager.getPlugins(),
        "updateOutput": filterUpdateField(output),
        "signalPhoneRegistered":
        getInfo('subscriptions')['registeredPhone'] != '',
        "watchlistInfos": getInfo('watchlist'),
        "subscriptionsInfos": getInfo('subscriptions')
    }
Пример #3
0
    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()
Пример #4
0
def adminInfo(output=None):
    return {
        "stats": getDBStats(True),
        "plugins": plugManager.getPlugins(),
        "updateOutput": filterUpdateField(output),
    }
Пример #5
0
 def api_dbInfo(self):
     return getDBStats()
Пример #6
0
def adminInfo(output=None):
    return {
        "stats": getDBStats(True),
        "updateOutput": filterUpdateField(output)
    }