소스 검색

HUE-5590 [importer] Workaround a very weird bug

'ouputFormat' is not appearing directly for some reason.
Romain Rigaux 9 년 전
부모
커밋
735e57c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      desktop/libs/indexer/src/indexer/api3.py

+ 2 - 0
desktop/libs/indexer/src/indexer/api3.py

@@ -151,7 +151,9 @@ def index_file(request):
 
 def importer_submit(request):
   source = json.loads(request.POST.get('source', '{}'))
+  outputFormat = json.loads(request.POST.get('destination', '{}'))['outputFormat']
   destination = json.loads(request.POST.get('destination', '{}'))
+  destination['ouputFormat'] = outputFormat # Workaround a very weird bug
 
   if destination['ouputFormat'] == 'index':
     _convert_format(source["format"], inverse=True)