cnc程序的程序单更新

This commit is contained in:
jinling.yang
2024-06-05 16:26:34 +08:00
parent e258e43b51
commit 17e2a3ffc3

View File

@@ -1039,8 +1039,6 @@ class CNCprocessing(models.Model):
for f in files: for f in files:
if os.path.splitext(f)[1] == ".pdf": if os.path.splitext(f)[1] == ".pdf":
full_path = os.path.join(serverdir, root, f) full_path = os.path.join(serverdir, root, f)
if full_path is not False:
if not cnc_processing.workorder_id.cnc_worksheet:
cnc_processing.workorder_id.cnc_worksheet = base64.b64encode( cnc_processing.workorder_id.cnc_worksheet = base64.b64encode(
open(full_path, 'rb').read()) open(full_path, 'rb').read())
else: else: