Skip to content

Commit

Permalink
Merge branch 'master' into kill_option_in_process_list_report
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt authored Jan 16, 2025
2 parents f41838c + 4a5731e commit 641cde2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions press/press/doctype/app_patch/app_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,7 @@ def patch_app(self, revert: bool):
@staticmethod
def process_patch_app(agent_job: "AgentJob"):
request_data = json.loads(agent_job.request_data)
app_patch = frappe.get_last_doc(
"App Patch",
{
"bench": agent_job.bench,
"patch": request_data.get("patch"),
},
for_update=True,
)
app_patch = frappe.get_doc("App Patch", agent_job.reference_name, for_update=True)

revert = request_data.get("revert")
if agent_job.status == "Failure" and revert:
Expand Down

0 comments on commit 641cde2

Please sign in to comment.