Преглед на файлове

Merge branch 'feature/eta_2.5.4_report_free_layout' into debug

kobe6258 преди 1 месец
родител
ревизия
716aac4482
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      services/smart_report.go

+ 1 - 1
services/smart_report.go

@@ -186,7 +186,7 @@ finally:
     loop.close()
 `
 
-	pyCode = fmt.Sprintf(pyCode, utils.ChromePath, width, reportUrl, width, filePath, top, bottom, left, right)
+	pyCode = fmt.Sprintf(pyCode, utils.ChromePath, width, reportUrl, width+left+right, filePath, top, bottom, left, right)
 	utils.FileLog.Info("pdf pyCode: \n" + pyCode)
 	cmd := exec.Command(utils.CommandPython, "-c", pyCode)
 	output, e := cmd.CombinedOutput()