mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
Fix: wrap args in quotes
This commit is contained in:
@ -203,7 +203,7 @@ class ScheduleMixin:
|
|||||||
Schedule.objects.create(
|
Schedule.objects.create(
|
||||||
name=task_name,
|
name=task_name,
|
||||||
func='plugin.registry.registry.call_plugin_function',
|
func='plugin.registry.registry.call_plugin_function',
|
||||||
args=f'{slug}, {func_name}',
|
args=f"'{slug}', '{func_name}'",
|
||||||
schedule_type=task['schedule'],
|
schedule_type=task['schedule'],
|
||||||
minutes=task.get('minutes', None),
|
minutes=task.get('minutes', None),
|
||||||
repeats=task.get('repeats', -1),
|
repeats=task.get('repeats', -1),
|
||||||
|
Reference in New Issue
Block a user