We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5609bd commit 0086006Copy full SHA for 0086006
ingest/views.py
@@ -938,11 +938,9 @@ def collection_detail(request, pk):
938
def ondemandSubmission(request, pk):
939
coll = Collection.objects.get(id = pk)
940
if coll.submission_status == 'SUCCESS' and coll.validation_status == 'SUCCESS':
941
- sheet = Sheet.objects.filter(collection_id=coll.id).last()
942
- print(sheet)
943
- ds = Dataset.objects.filter(sheet = sheet.id).last()
944
- p = ds.bildirectory
945
- path = p[:33]
+ first2 = coll.bil_uuid[:2]
+ second2 = coll.bil_uuid[2:4]
+ path = '/bil/data/' + first2 + '/' + second2 + '/' + coll.bil_uuid + '/'
946
else:
947
path = coll.data_path
948
od = 'https://ondemand.bil.psc.edu/pun/sys/dashboard/files/fs' + path
0 commit comments