Beispiel #1
0
 def tag_popular(self, request):
     '''
     Get the most used tags in the system, limited to a number
     '''
     tags = Tag.get_popular_tags(limit=request.limit)
     tags = [TagMessage(text=t.text, total=t.total) for t in tags]
     return TagPopularMessage(tags=tags)