feat: Added filter to query
This commit is contained in:
parent
e7cf06b3c6
commit
5869ba1470
@ -203,7 +203,7 @@ def set_multiple_status(names, status):
|
|||||||
task.save()
|
task.save()
|
||||||
|
|
||||||
def set_tasks_as_overdue():
|
def set_tasks_as_overdue():
|
||||||
tasks = frappe.get_all("Task")
|
tasks = frappe.get_all("Task", filters={'status':['not in',['Cancelled', 'Completed']]})
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
frappe.get_doc("Task", task.name).update_status()
|
frappe.get_doc("Task", task.name).update_status()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user