Merge pull request #10668 from saurabh6790/script-naming
fix: scrub script name while creating scheduler event
This commit is contained in:
commit
bf2ecc4e1e
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class ServerScript(Document):
|
|||
|
||||
@frappe.whitelist()
|
||||
def setup_scheduler_events(script_name, frequency):
|
||||
method = frappe.scrub(script_name) + '_' + frequency.lower()
|
||||
method = frappe.scrub('{0}-{1}'.format(script_name, frequency))
|
||||
scheduled_script = frappe.db.get_value('Scheduled Job Type',
|
||||
dict(method=method))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue