Skip to content

Commit ce75219

Browse files
committed
update add
1 parent c648a8c commit ce75219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/05_content_publishers/overwriting_feature_layers.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,9 @@
329329
],
330330
"source": [
331331
"# add the csv as an item\n",
332-
"item_prop = {'title':'USA Capitals spreadsheet_' + str(now)}\n",
332+
"item_prop = {'title':'USA Capitals spreadsheet_' + str(now), \"item_type\": \"CSV\"}\n",
333333
"root_folder = gis.content.folders.get()\n",
334-
"csv_item = root_folder.add(item_properties=item_prop, file=my_csv)\n",
334+
"csv_item = root_folder.add(item_properties=item_prop, file=my_csv).result()\n",
335335
"csv_item"
336336
]
337337
},

0 commit comments

Comments
 (0)