def scanMostCapacityApps(limit=50): results = MongoUtil.capacity_find_most(limit) for result in results: result = result["value"] appid = result["appid"] appinfo = MongoUtil.find_one("app_table",{"_id":appid}) appinfo["capacity_num"] = result["capacity_num"] appinfo["date"] = result["date"] print(appinfo) print()
def getMaxDownLoadCapacity(limit=10): results = MongoUtil.capacity_find_most(limit) return results