فهرست منبع

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()
     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)
 	utils.FileLog.Info("pdf pyCode: \n" + pyCode)
 	cmd := exec.Command(utils.CommandPython, "-c", pyCode)
 	cmd := exec.Command(utils.CommandPython, "-c", pyCode)
 	output, e := cmd.CombinedOutput()
 	output, e := cmd.CombinedOutput()