Esempio n. 1
0
 def _stats(self, index, queries, fields, office):
     db = DBQuery(index=index, office=office, host=self.dbhost)
     try:
         return db.stats(queries, fields)
     except Exception as e:
         return str(e)
Esempio n. 2
0
 def _stats(self, index, queries, fields):
     try:
         dbq=DBQuery(index=index,office=office,host=dbhost)
         return dbq.stats(queries, fields)
     except Exception as e:
         return str(e)