Skip to content

Commit 39e6e16

Browse files
authored
Merge pull request #2324 from Esri/ssong/update_validate_profile_nb
update params for validate user profile nb
2 parents 9855995 + 98781db commit 39e6e16

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

samples/03_org_administrators/validate_user_profiles.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,15 @@
282282
],
283283
"source": [
284284
"item_props = ItemProperties(\n",
285-
" \"title\" = out_file,\n",
286-
" \"type\" = ItemTypeEnum.CSV,\n",
287-
" \"tags\" = \"user_profile_report\",\n",
288-
" \"snippet\" = \"Report on user profile data from Python API\"\n",
285+
" title = out_file,\n",
286+
" item_type = ItemTypeEnum.CSV,\n",
287+
" tags = \"user_profile_report\",\n",
288+
" snippet = \"Report on user profile data from Python API\"\n",
289289
")\n",
290290
"\n",
291291
"root_folder = gis.content.folders.get()\n",
292292
"\n",
293-
"root_folder.add(\n",
293+
"item = root_folder.add(\n",
294294
" item_properties = item_props,\n",
295295
" file= os.path.join(output_dir + out_file)\n",
296296
").result()"
@@ -309,7 +309,7 @@
309309
"metadata": {},
310310
"outputs": [],
311311
"source": [
312-
"item = gis.content.get(item_id)\n",
312+
"item = gis.content.get(item.id)\n",
313313
"item.delete()"
314314
]
315315
},
@@ -343,7 +343,7 @@
343343
"name": "python",
344344
"nbconvert_exporter": "python",
345345
"pygments_lexer": "ipython3",
346-
"version": "3.11.10"
346+
"version": "3.11.11"
347347
},
348348
"toc": {
349349
"base_numbering": 1,

0 commit comments

Comments
 (0)