Explorar el Código

Merge branch 'dev-python'

rambo hace 11 meses
padre
commit
f6076c602b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      python/services/deal_cutout.py

+ 2 - 1
python/services/deal_cutout.py

@@ -215,7 +215,8 @@ class DealModelForm:
         is_finished = False
         root_path = ""
         if len(generate_ids) > 0:
-            root_path = generate_ids.loc[0]["root_path"]
+            print("generate_ids",generate_ids)
+            root_path = generate_ids.iloc[0]["root_path"]
             save_path = f"{root_path}/已扣图"
             check_path(save_path)
         else: