mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
small perf imrpovements
This commit is contained in:
parent
3e5432db47
commit
c197358ce4
@ -24,6 +24,7 @@ repos:
|
||||
- id: ruff
|
||||
args: [
|
||||
--fix,
|
||||
--unsafe-fixes,
|
||||
--preview
|
||||
]
|
||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||
|
@ -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:
|
||||
|
@ -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}'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user