From 2300751e9c897187720d3bcad5d6dad48a8c3aff Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 2 Jun 2022 17:41:01 +0200 Subject: [PATCH] chg: [AIL2AIL Sync] update exchange format --- bin/core/Sync_importer.py | 2 +- bin/core/ail_2_ail.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/core/Sync_importer.py b/bin/core/Sync_importer.py index f0513aaf..0176565d 100755 --- a/bin/core/Sync_importer.py +++ b/bin/core/Sync_importer.py @@ -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) diff --git a/bin/core/ail_2_ail.py b/bin/core/ail_2_ail.py index 2dd12ea6..d415e9b3 100755 --- a/bin/core/ail_2_ail.py +++ b/bin/core/ail_2_ail.py @@ -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()