示例#1
0
 def get(self, jid):
     returns = self.collection.saltReturns
     ret = list(returns.find({'jid': jid}).sort('_id'))
     return jsonify({'results': ret})
示例#2
0
 def get(self, jid):
     jobs = self.collection.jobs
     ret = jobs.find_one({'jid': jid})
     return jsonify(ret)
示例#3
0
 def get(self):
     returns = self.collection.saltReturns
     ret = list(returns.find())
     return jsonify({'results': ret})
示例#4
0
 def get(self):
     jobs = self.collection.jobs
     ret = list(jobs.find().sort('jid', -1))
     for x in ret:
         x['_id'] = str(x['_id'])
     return jsonify({'jobs': ret})
示例#5
0
 def get(self, jid):
     returns = self.collection.saltReturns
     ret = list(returns.find({'jid': jid}).sort('_id'))
     return jsonify({'results': ret})
示例#6
0
 def get(self):
     returns = self.collection.saltReturns
     ret = list(returns.find())
     return jsonify({'results': ret})
示例#7
0
 def get(self, jid):
     jobs = self.collection.jobs
     ret = jobs.find_one({'jid': jid})
     return jsonify(ret)
示例#8
0
 def get(self):
     jobs = self.collection.jobs
     ret = list(jobs.find().sort('jid', -1))
     for x in ret:
         x['_id'] = str(x['_id'])
     return jsonify({'jobs': ret})