2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +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

@ -24,6 +24,7 @@ repos:
- id: ruff
args: [
--fix,
--unsafe-fixes,
--preview
]
- repo: https://github.com/astral-sh/uv-pre-commit

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}'
)