Beispiel #1
0
 def details(self):
     ret = []
     # noinspection PyTypeChecker
     for detail in self.details_list:
         indicator = Key(urlsafe=detail['detail']).get()
         # we make a copy, it's direct access to it..
         d_indicator = indicator.to_dict()
         d_indicator['value'] = detail['value']
         ret.append(d_indicator)
     return ret
Beispiel #2
0
 def indicators(self):
     ret = []
     # noinspection PyTypeChecker
     for inds in self.indicator_list:
         ret_i = []
         for ind in inds:
             indicator = Key(urlsafe=ind['id']).get()
             # we make a copy, it's direct access to it..
             d_indicator = indicator.to_dict()
             d_indicator['value'] = ind['value']
             ret_i.append(d_indicator)
         ret.append(ret_i)
     return ret