fix: unexpected commits
This commit is contained in:
parent
eef059231a
commit
9fa2edf461
2 changed files with 7 additions and 2 deletions
|
|
@ -29,7 +29,9 @@ class SystemConsole(Document):
|
|||
try:
|
||||
frappe.local.debug_log = []
|
||||
if self.type == "Python":
|
||||
safe_exec(self.console, script_filename="System Console")
|
||||
safe_exec(
|
||||
self.console, script_filename="System Console", restrict_commit_rollback=not self.commit
|
||||
)
|
||||
self.output = "\n".join(frappe.debug_log)
|
||||
elif self.type == "SQL":
|
||||
self.output = frappe.as_json(read_sql(self.console, as_dict=1))
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@ export class DropdownConsole {
|
|||
size: "large",
|
||||
fields: [
|
||||
{
|
||||
description: "To execute press ctrl/cmd+enter.",
|
||||
description: `To execute press ctrl/cmd+enter.
|
||||
To minimize this window press Escape.
|
||||
Press shift+t to bring it back.
|
||||
`,
|
||||
fieldname: "console",
|
||||
fieldtype: "Code",
|
||||
label: "Console",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue