chg: [AIL2AIL Sync] update exchange format

pull/586/head
Terrtia 2022-06-02 17:41:01 +02:00
parent b9ad0b1bce
commit 2300751e9c
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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()