Exemple #1
0
def getStats(payload, req): 
    uid = UR.getUserId(req)
    if uid is None: 
        return UR.prepare_response({}, 1,  "NOT ALLOWED")
    else:
        return UR.prepare_response(annotations.get_stats(uid))
Exemple #2
0
def getStats(payload, req): 
    uid = UR.getUserId(req)
    if uid is None: 
        return UR.prepare_response({}, 1,  "NOT ALLOWED")
    else:
        return UR.prepare_response(annotations.get_stats(uid))