Skip to content

Commit 698b679

Browse files
committed
Fix remoteOut #6
1 parent a9e0a23 commit 698b679

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎worker/collate-worker.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ def runSomething(message):
122122
# First, build a variable called remoteOut that equals your unique prefix of where your output should be
123123
# Then check if there are too many files
124124

125-
remoteOut = f"{message['aws_remote']}/backend/{message['batch']}/{message['group']['plate']}"
125+
remote_with_bucket = message['aws_remote']
126+
remote_prefix_only = remote_with_bucket[(remote_with_bucket[5:].index('/')+6):]
127+
128+
remoteOut = f"{remote_prefix_only}/backend/{message['batch']}/{message['group']['plate']}"
126129

127130
if CHECK_IF_DONE_BOOL.upper() == 'TRUE':
128131
try:

0 commit comments

Comments
 (0)