mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
fix: [ail sync] fix refresh_ail_instance_connection
This commit is contained in:
parent
f597e1aaa2
commit
7f02ade6a7
1 changed files with 12 additions and 0 deletions
|
@ -265,6 +265,8 @@ def refresh_ail_instance_connection(ail_uuid):
|
|||
clients_id = get_client_id_by_ail_uuid(ail_uuid)
|
||||
if clients_id:
|
||||
clients_id = clients_id[0]
|
||||
else:
|
||||
client_id = None
|
||||
launch_required = is_ail_instance_push_enabled(ail_uuid)
|
||||
|
||||
# relaunch
|
||||
|
@ -1176,6 +1178,16 @@ def add_ail_stream_to_sync_importer(ail_stream):
|
|||
# #
|
||||
#### AIL EXCHANGE FORMAT ####
|
||||
|
||||
def is_valid_ail_exchange_format_json(json_obj):
|
||||
try:
|
||||
ail_stream = json.dumps(ail_stream)
|
||||
except ValueError:
|
||||
return False
|
||||
return is_valid_ail_exchange_format(ail_stream)
|
||||
|
||||
def is_valid_ail_exchange_format(ail_stream):
|
||||
pass
|
||||
|
||||
def create_ail_stream(Object):
|
||||
ail_stream = {'format': 'ail',
|
||||
'version': 1,
|
||||
|
|
Loading…
Reference in a new issue