fix: use .format() instead of f string

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-09-16 11:31:41 +05:30
parent a52a44716e
commit bc6f08fc28
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F
3 changed files with 5 additions and 5 deletions

View file

@ -340,7 +340,7 @@ def export_query():
frappe.msgprint(
_(
"Your report is being generated in the background. "
f"You will receive an email on {user_email} with a download link once it is ready."
"You will receive an email on {0} with a download link once it is ready.".format(user_email)
)
)
return

View file

@ -395,7 +395,7 @@ def export_query():
frappe.msgprint(
_(
"Your report is being generated in the background. "
f"You will receive an email on {user_email} with a download link once it is ready."
"You will receive an email on {0} with a download link once it is ready.".format(user_email)
)
)
return

View file

@ -106,9 +106,9 @@ def send_report_email(
message=frappe._(
"The report you requested has been generated.<br><br>"
"Click here to download:<br>"
f"<a href='{file_url}'>{file_url}</a><br><br>"
f"This link will expire in {file_retention_hours} hours."
),
"<a href='{0}'>{0}</a><br><br>"
"This link will expire in {1} hours."
).format(file_url, file_retention_hours),
now=True,
)