mirror of https://github.com/CIRCL/AIL-framework
chg: [AIL2AIL Sync] update exchange format
parent
b9ad0b1bce
commit
2300751e9c
|
@ -79,7 +79,7 @@ class Sync_importer(AbstractModule):
|
|||
b64_gzip_content = ail_stream['payload']['raw']
|
||||
|
||||
# # TODO: create default id
|
||||
item_id = ail_stream['meta']['ail:id'] + 'test'
|
||||
item_id = ail_stream['meta']['ail:id']
|
||||
|
||||
message = f'{item_id} {b64_gzip_content}'
|
||||
print(item_id)
|
||||
|
|
|
@ -1205,7 +1205,7 @@ def create_ail_stream(Object):
|
|||
'type': Object.get_type()}
|
||||
|
||||
# OBJECT META
|
||||
ail_stream['meta'] = {'ail:mime-type': 'text/plain'}
|
||||
ail_stream['meta'] = {'mime-type': 'text/plain'}
|
||||
ail_stream['meta']['compress'] = 'gzip'
|
||||
ail_stream['meta']['encoding'] = 'base64'
|
||||
ail_stream['meta']['ail:id'] = Object.get_id()
|
||||
|
|
Loading…
Reference in New Issue