def getMessageWithHashtag(hashtag_id): handler = HashtagsHandler() return handler.getHashtagByID(hashtag_id)
def hashtagText(hashtag_text): handler = HashtagsHandler() hashtag_text = '#' + hashtag_text # concat the # to the hashtag text return handler.getHashtagByText(hashtag_text)
def getHashtagsInMessage(message_id): handler = HashtagsHandler() return handler.getHashtagsFromMessage(message_id)
def hashtags(): handler = HashtagsHandler() return handler.getAllHashtags()
def trends(): handler = HashtagsHandler() return handler.getTrends()
def getMessageByHashtagAndGroup(group_id, hashtag_text): handler = MessageHandler() hHandler = HashtagsHandler() hashtag_text = '#' + hashtag_text # concat the # to the hashtag text return hHandler.getMessagesWithHashtagTextAndGroup(hashtag_text, group_id)
def getMessageByHashtag(hashtag_text): handler = MessageHandler() hHandler = HashtagsHandler() hashtag_text = '#' + hashtag_text # concat the # to the hashtag text return hHandler.getMessagesWithHashtagText(hashtag_text)