Skip to content

Commit

Permalink
hsaldsjhak
Browse files Browse the repository at this point in the history
  • Loading branch information
glormph committed Nov 15, 2024
1 parent 73a79c7 commit f658303
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/backend/rawstatus/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,18 +482,25 @@ def classified_rawfile_treatment(request):
if sfn.rawfile.claimed:
# This file has already been classified or otherwise picked up
return HttpResponse()
print('hllo')
if is_qc:
print('qc')
sfn.rawfile.claimed = True
print('qc')
sfn.rawfile.save()
print('qc')
create_job('move_single_file', sf_id=sfn.pk,
dstsharename=settings.PRIMARY_STORAGESHARENAME,
dst_path=os.path.join(settings.QC_STORAGE_DIR, sfn.rawfile.producer.name))
print('qcb')
staff_ops = dsmodels.Operator.objects.filter(user__is_staff=True)
if staff_ops.exists():
user_op = staff_ops.first()
else:
user_op = dsmodels.Operator.objects.first()
print('qca')
run_singlefile_qc(sfn.rawfile, sfn, user_op)
print('qca')
elif dsid:
# Make sure dataset exists
if not dsmodels.Dataset.objects.filter(pk=dsid).exists():
Expand Down

0 comments on commit f658303

Please sign in to comment.