fix: use .format() instead of f string
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
a52a44716e
commit
bc6f08fc28
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue