Пример #1
0
 def method_get_counts(self):
     kang = Device.count_kang()
     official = Device.count_nonkang()
     result = {
         'kang': kang,
         'official': official,
         'total': official + kang,
         'device': Device.device_count(),
         'version': Device.version_count(),
         'last_day': Device.count_last_day()
     }
     return self.success(result)
Пример #2
0
    def method_get_total_installs(self):
        kang = Device.count_kang()
        official = Device.count_nonkang()

        return self.success(kang + official)