Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
def getMaxDownLoadCapacity(limit=10):
    results = MongoUtil.capacity_find_most(limit)
    return results