fix(minor): set is_private as int instead of bool
This commit is contained in:
parent
1d4936b7e2
commit
deb75cb07e
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ from PIL import Image
|
|||
|
||||
import frappe
|
||||
from frappe import _, safe_decode
|
||||
from frappe.utils import cstr, encode, get_files_path, random_string, strip
|
||||
from frappe.utils import cint, cstr, encode, get_files_path, random_string, strip
|
||||
from frappe.utils.file_manager import safe_b64decode
|
||||
from frappe.utils.image import optimize_image
|
||||
|
||||
|
|
@ -339,7 +339,7 @@ def attach_files_to_document(doc: "Document", event) -> None:
|
|||
"attached_to_name": doc.name,
|
||||
"attached_to_doctype": doc.doctype,
|
||||
"attached_to_field": df.fieldname,
|
||||
"is_private": value.startswith("/private"),
|
||||
"is_private": cint(value.startswith("/private")),
|
||||
},
|
||||
)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue