Skip to content

Commit

Permalink
Delete operation should delete only attributes which exists
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jul 28, 2022
1 parent 14df8bb commit 58b2dd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Server/Python/src/dbs/business/DBSBlockInsert.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,10 @@ def insertBlockFile(self, blockcontent, datasetId, migration=False):
hasFparentage = True
if migration:
fileParentList[k]['this_file_id'] = logicalFileName[fileParentList[k]['this_logical_file_name']]
del fileParentList[k]['this_logical_file_name']
del fileParentList[k]['parent_file_id']
if 'this_logical_file_name' in fileParentList[k]:
del fileParentList[k]['this_logical_file_name']
if 'parent_file_id' in fileParentList[k]:
del fileParentList[k]['parent_file_id']
else:
fileParentList[k]['this_file_id'] = logicalFileName[fileParentList[k]['logical_file_name']]
del fileParentList[k]['logical_file_name']
Expand Down

0 comments on commit 58b2dd8

Please sign in to comment.