Пример #1
0
def getAllStatsJson():
    if request.method == 'GET':
        if not request.json:
            return statHandler().getAllStats()
        return statHandler().getStatByChoice(request.json)
    else:
        return jsonify(Error="Method not allowed."), 405
Пример #2
0
def getTopHashtags():
    if request.method == 'GET':
        return statHandler().getTopHashtags()
    else:
        return jsonify(Error="Method not allowed."), 405
Пример #3
0
def getMostActiveUsers():
    if request.method == 'GET':
        return statHandler().getMostActiveUsers()
    else:
        return jsonify(Error="Method not allowed."), 405