Beispiel #1
0
def stats():
    data = stats_collection.find_one({"_id": "stats"})
    del data["_id"]
    return data
Beispiel #2
0
def stats():
    data = stats_collection.find_one({'_id': 'stats'})
    return collections.OrderedDict([
        (key, data[key])
        for key in STATS_FIELDS
    ])
Beispiel #3
0
def stats():
    data = stats_collection.find_one({'_id': 'stats'})
    return collections.OrderedDict([(key, data[key]) for key in STATS_FIELDS])