chg: [AIL2AIL Sync] update exchange format

This commit is contained in:
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()