Skip to content

Commit

Permalink
Updating to match the CEGA/LEGA interface
Browse files Browse the repository at this point in the history
  • Loading branch information
silverdaz committed Oct 24, 2018
1 parent 34163f8 commit 372800a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploy/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ submit: $(FILE).c4gh
python $(MAIN_REPO)/extras/cega_publish.py \
--connection $(CEGA_MQ_CONNECTION) \
'files' \
"{ \"user\": \"$(USER)\", \"filepath\": \"/$(FILE).c4gh\"}"
"{ \"user\": \"$(USER)\", \"file_path\": \"/$(FILE).c4gh\"}"


# stable_id: STABLE_ID=$(shell uuidgen)
Expand Down
8 changes: 4 additions & 4 deletions extras/publish_stable_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
# Just checking the JSON-formatting
data = json.loads(body)
checksum = None
for c in data['checksums']:
for c in data['decrypted_checksums']:
if c['type'].lower() == 'sha256':
checksum = c['value']
break
message = {
'user': data['user'],
'filePath': data['filepath'],
'checksum': { 'type': 'sha256', 'value': checksum },
'stableId': args.stable_id,
'file_path': data['file_path'],
'decrypted_checksums': [{ 'type': 'sha256', 'value': checksum }],
'stable_id': args.stable_id,
}

print('Sending',message)
Expand Down

0 comments on commit 372800a

Please sign in to comment.