예제 #1
0
def stats():
    data = stats_collection.find_one({"_id": "stats"})
    del data["_id"]
    return data
예제 #2
0
파일: api.py 프로젝트: sloria/neurotrends
def stats():
    data = stats_collection.find_one({'_id': 'stats'})
    return collections.OrderedDict([
        (key, data[key])
        for key in STATS_FIELDS
    ])
예제 #3
0
def stats():
    data = stats_collection.find_one({'_id': 'stats'})
    return collections.OrderedDict([(key, data[key]) for key in STATS_FIELDS])