From d54ea007e09ebdd855f143e85d1a8532ff26b621 Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Thu, 16 Jan 2025 13:56:24 +0530 Subject: [PATCH] fix(agent): Typo --- .../doctype/agent_request_failure/agent_request_failure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/press/press/doctype/agent_request_failure/agent_request_failure.py b/press/press/doctype/agent_request_failure/agent_request_failure.py index 2e9ecdec41..dc865f9e0e 100644 --- a/press/press/doctype/agent_request_failure/agent_request_failure.py +++ b/press/press/doctype/agent_request_failure/agent_request_failure.py @@ -35,7 +35,7 @@ def before_insert(self): def is_server_archived(failure): # Server was archived more than an hour ago - server = frappe.db.get_values(failure.server_type, failure.server, ["status", "modified"], as_dict=True) + server = frappe.db.get_value(failure.server_type, failure.server, ["status", "modified"], as_dict=True) if (server.status == "Archived") and (server.modified < frappe.utils.add_to_date(None, hours=-1)): return True return False