diff --git a/frappe/core/doctype/file/utils.py b/frappe/core/doctype/file/utils.py index 3bb69e72ac..9795c73d9e 100644 --- a/frappe/core/doctype/file/utils.py +++ b/frappe/core/doctype/file/utils.py @@ -376,7 +376,7 @@ def relink_files(doc, fieldname, temp_doc_name): "attached_to_field": fieldname, "creation": ( "between", - [now_datetime() - add_to_date(date=now_datetime(), minutes=-60), now_datetime()], + [add_to_date(date=now_datetime(), minutes=-60), now_datetime()], ), }, )