2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-28 11:59:23 +00:00

Bug fix for task comparison (#11993)

This commit is contained in:
Oliver
2026-05-24 00:18:56 +10:00
committed by GitHub
parent 27ca0836e7
commit a1ed5bcf94
+1 -1
View File
@@ -178,7 +178,7 @@ def check_existing_task(taskname, group: str, *args, **kwargs) -> Optional[str]:
# Iterate through all available tasks, with the most recent first # Iterate through all available tasks, with the most recent first
for task in OrmQ.objects.all().order_by('-id'): for task in OrmQ.objects.all().order_by('-id'):
if task.func() != taskname and task.task['func'] != taskname: if task.func() != taskname and task.task.get('func') != taskname:
# Task does not match # Task does not match
continue continue