Skip to content

Commit

Permalink
delete @id after using
Browse files Browse the repository at this point in the history
  • Loading branch information
KorayKirli committed Mar 22, 2017
1 parent 1d93257 commit 1cf24f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file removed Data_Files/Rao_et_al_2014/fieldsRao_test.xls
Binary file not shown.
Binary file not shown.
4 changes: 3 additions & 1 deletion wranglertools/import_data.py
Expand Up @@ -369,7 +369,9 @@ def populate_post_json(post_json, connection, sheet):
if post_json.get('aliases') and existing_data.get('aliases'):
aliases_to_post = list(set(filter(None, post_json.get('aliases') + existing_data.get('aliases'))))
post_json["aliases"] = aliases_to_post

# delete calculated property
if post_json.get('@id'):
del post_json['@id']
# should I upload files as well?
file_to_upload = False
filename_to_post = post_json.get('filename')
Expand Down

0 comments on commit 1cf24f0

Please sign in to comment.