def deleteGroup(self, json): dao = GroupDAO() if len(json) != 2: return jsonify(Error="Malformed post request"), 400 else: groupId = json['groupId'] ownerId = json['ownerid'] if groupId and ownerId: result = dao.deleteGroup(groupId, ownerId) return jsonify(result), 201 else: return jsonify( Error="Unexpected attributes in post request"), 400
def deleteGroup(self, json): dao = GroupDAO() chat_group_id = json['chat_group_id'] user_id = json['user_id'] result = dao.deleteGroup(chat_group_id, user_id) return jsonify(result), 201