def delete_user_work(user_id, args): user = User.get_user(user_id) if user is None: raise Error(StatusCode.NOT_FOUND, 'Cannot found user') User.delete_user_work(user_id, args['work_place_link']) return jsonify({ 'status': True, 'message': 'Delete work successfully' }), StatusCode.OK