2
0
mirror of https://github.com/frappe/frappe.git synced 2024-06-12 21:42:21 +00:00

build(deps): update premailer 3.8.0 -> 3.10.0 (#21783)

This commit is contained in:
David Arnold 2023-07-24 05:56:27 -05:00 committed by GitHub
parent 4b0990c736
commit cf8a603dac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -405,7 +405,9 @@ def inline_style_in_html(html):
css_files = [path.lstrip("/") for path in css_files]
css_files = [css_file for css_file in css_files if os.path.exists(os.path.abspath(css_file))]
p = Premailer(html=html, external_styles=css_files, strip_important=False)
p = Premailer(
html=html, external_styles=css_files, strip_important=False, allow_loading_external_files=True
)
return p.transform()

View File

@ -48,7 +48,7 @@ dependencies = [
"passlib~=1.7.4",
"pdfkit~=1.0.0",
"phonenumbers==8.13.13",
"premailer~=3.8.0",
"premailer~=3.10.0",
"psutil~=5.9.5",
"psycopg2-binary~=2.9.1",
"pyOpenSSL~=23.2.0",