def getAllHashtags(self): dao = HashtagDAO() result = dao.getAllHashtags() mapped_result = [] for r in result: mapped_result.append(self.mapHashTagToDict(r)) return jsonify(Hashtag=mapped_result)
def getAllHashtags(self): hashtagDAO = HashtagDAO() result = hashtagDAO.getAllHashtags() mapped = [] for r in result: mapped.append(self.mapToDict2(r)) return jsonify(Hashtags=mapped)
def getAllHashtags(self): hashtagDAO = HashtagDAO() result = hashtagDAO.getAllHashtags() mapped = [] for r in result: # hashtag_info = [] # hashtag_info.append(r[1]) # hashtag text # hashtag_info.append(r[3]) # hashtag date mapped.append(self.mapToDict2(r)) return jsonify(Hashtags=mapped)
def getAllHashtags(self): dao = HashtagDAO() result = dao.getAllHashtags() return jsonify(result)