various fixes
This commit is contained in:
parent
d830847a8a
commit
5de14b1ef2
|
|
@ -19,10 +19,10 @@ logger = structlog.get_logger('inventree')
|
|||
|
||||
|
||||
def log_error(
|
||||
path,
|
||||
error_name=None,
|
||||
error_info=None,
|
||||
error_data=None,
|
||||
path: Optional[str] = None,
|
||||
error_name: Optional[str] = None,
|
||||
error_info: Optional[str] = None,
|
||||
error_data: Optional[str] = None,
|
||||
scope: Optional[str] = None,
|
||||
plugin: Optional[str] = None,
|
||||
):
|
||||
|
|
|
|||
|
|
@ -73,7 +73,9 @@ class ReportConfig(AppConfig):
|
|||
def cleanup(self):
|
||||
"""Cleanup old label and report outputs."""
|
||||
try:
|
||||
from report.tasks import cleanup_old_report_outputs # type: ignore[import]
|
||||
from report.tasks import (
|
||||
cleanup_old_report_outputs, # type: ignore[import] # ty: ignore[unresolved-import]
|
||||
)
|
||||
|
||||
cleanup_old_report_outputs()
|
||||
except Exception:
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ from rest_framework.generics import GenericAPIView
|
|||
from rest_framework.response import Response
|
||||
from rest_framework.serializers import ValidationError
|
||||
|
||||
import common.filters
|
||||
import common.models
|
||||
import common.settings
|
||||
import InvenTree.helpers
|
||||
|
|
|
|||
Loading…
Reference in New Issue