def set_past_positions(self): self.pastPositionList=[] if self.data.get('threePastPositions') != None: for i in range(0, self.data['threePastPositions']['_total']): position=jsonparser.get_poisition(self.data,True,i) self.pastPositionList.append(position)
def set_current_positions(self): self.currentPositionList=[] if self.data.get('threeCurrentPositions') != None: for i in range(0,self.data['threeCurrentPositions']['_total']): position=jsonparser.get_poisition(self.data,False,i) self.currentPositionList.append(position)