Example #1
0
 def find(cls, group_id):
     group = Group.get_by_id(group_id)
     chats = Chat.query(Chat.group_key == group.key).order(-Chat.created_at).fetch(100)
     return jsonify(chats=list(map(lambda c: c.to_dict(), chats)))