Răsfoiți Sursa

HUE-5590 [importer] Workaround a very weird bug

'ouputFormat' is not appearing directly for some reason.
Romain Rigaux 9 ani în urmă
părinte
comite
735e57c
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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)