2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

small perf imrpovements

This commit is contained in:
Matthias Mair
2024-08-20 00:06:13 +02:00
parent 3e5432db47
commit c197358ce4
3 changed files with 3 additions and 2 deletions

View File

@ -200,7 +200,7 @@ class ScheduleMixin:
try:
from django_q.models import Schedule
for key, _ in self.scheduled_tasks.items():
for key in self.scheduled_tasks:
task_name = self.get_task_name(key)
try:

View File

@ -200,7 +200,7 @@ class TestTestResultMigration(MigratorTestCase):
)
# Create some test results
for _k, v in self.test_keys.items():
for v in self.test_keys.values():
StockItemTestResult.objects.create(
stock_item=si, test=v, result=True, value=f'Result: {ii} : {jj}'
)