def work(self): f = Freq(self.uid) d = self.get_argument('freqs') d = json.loads(d) d = json.loads(d) f.save(d) return True,'',''
def work(self): f = Freq(self.uid) succ,data = f.query() if succ: return succ,'',data else: return succ,data,None