File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
dashboard_viewer/uploader/file_handler Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -270,10 +270,8 @@ def _get_upload_attr(analysis, stratum):
270
270
271
271
272
272
def check_for_duplicated_files (uploaded_file , data_source_id ):
273
- #### Added For Checksum ##########################
274
-
275
273
try :
276
- # Upload History only stores the succesded files
274
+ # Upload History only stores the succeded files
277
275
278
276
pd = UploadHistory .objects .filter (data_source_id = data_source_id ).latest ()
279
277
@@ -283,8 +281,8 @@ def check_for_duplicated_files(uploaded_file, data_source_id):
283
281
.first ()
284
282
)
285
283
286
- if data_source_hash is not None :
287
- # Go to the path where sucess filea are stored
284
+ if data_source_hash is not None and bool ( pd . uploaded_file ) :
285
+ # Go to the path where success files are stored
288
286
289
287
latest_file_path = os .path .join (settings .MEDIA_ROOT , pd .uploaded_file .path )
290
288
@@ -317,7 +315,6 @@ def check_for_duplicated_files(uploaded_file, data_source_id):
317
315
except UploadHistory .DoesNotExist :
318
316
pass
319
317
320
- #### Added For Checksum ##########################
321
318
322
319
def upload_data_to_tmp_table (data_source_id , file_metadata , pending_upload ):
323
320
You can’t perform that action at this time.
0 commit comments