Exemple #1
0
def dashboardById(did):
    if request.method == 'PUT':
        return DashboardHandler().updateDashboardById(did, request.form)
    else:
        return jsonify(Error='Method Not Allowed'), 405
Exemple #2
0
def topUsers():
    return DashboardHandler().topActiveUsers()
Exemple #3
0
def dashboard():
    if request.method == 'GET':
        return DashboardHandler().getDashboard()
    else:
        return jsonify(Error='Method Not Allowed'), 405
Exemple #4
0
def dailyDisikes():
    return DashboardHandler().dislikesPerDay()
Exemple #5
0
def dailyLikes():
    return DashboardHandler().likesPerDay()
Exemple #6
0
def dailyReplies():
    return DashboardHandler().repliesPerDay()
Exemple #7
0
def dailyMessages():
    return DashboardHandler().messagesPerDay()
Exemple #8
0
def trendingHashtags():
    return DashboardHandler().topTenHashtags()