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)
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)