Пример #1
0
def getAllMessageDislikesByMID(mid):
    if request.method == 'POST':
        print("Request: ", request.json)
        return MessageHandler().insertMessageDislikeJson(request.json)
    else:
        if not request.args:
            return MessageHandler().getAllMessageDislikesByMID(mid)
Пример #2
0
def getDislikesByMessageId(mid):
    return MessageHandler().getDislikesByMessageId(mid)
Пример #3
0
def getMessagesByGroupId(gid):
    return MessageHandler().getMessagesByGroupId(gid)
Пример #4
0
def getAllMessages():
    return MessageHandler().getAllMessages()
Пример #5
0
def getMessageById(message_id):
    return MessageHandler().getMessageByID(message_id)
Пример #6
0
def getRepliesPerDay():
    return MessageHandler().getRepliesPerDay()
Пример #7
0
def getUsersThatDislikedMessageByMID(mid):
    return MessageHandler().getUsersThatDislikedMessageByMID(mid)
Пример #8
0
def repliesPerDay():
    return MessageHandler().repliesPerDay()
Пример #9
0
def createHashtag():
    return MessageHandler().createHashtag(request.json)
Пример #10
0
def numReplies(oid):
    return MessageHandler().numReplies(oid)
Пример #11
0
def dislikeMessage():
    return MessageHandler().dislikeMessage(request.json)
Пример #12
0
def getMessagesByUID(user_id):
    return MessageHandler().findUserMessages(user_id)
Пример #13
0
def getChatMessages(chat_id):
    return MessageHandler().findChatMessages(chat_id)
Пример #14
0
def getMessageByID(mid):
    return MessageHandler().getMessageByID(mid)
Пример #15
0
def likesPerDay():
    return MessageHandler().likesPerDay()
Пример #16
0
def getAllMessagesByUser(uid):
    return MessageHandler().getAllMessagesByUser(uid)
Пример #17
0
def dislikesPerDay():
    return MessageHandler().dislikesPerDay()
Пример #18
0
def getNumberOfDislikesByMID(mid):
    return MessageHandler().getNumberOfDislikesByMID(mid)
Пример #19
0
def postsCounter():
    return MessageHandler().getPostsCount()
Пример #20
0
def getMessagesPerDay():
    return MessageHandler().getMessagePerDay()
Пример #21
0
def getTrendingTopics():
    return MessageHandler().getTrendingTopics()
Пример #22
0
def getDislikesPerDay():
    return MessageHandler().getDislikesPerDay()
Пример #23
0
def messages():
    handler = MessageHandler()
    return handler.getAllMessages()