fix: Syntax errors in 4 plugin routes (log_audit import misplaced), starlette downgrade, unused components/modules deleted
Check Cross-Plugin Imports / check (push) Has been cancelled
Check Cross-Plugin Imports / check (push) Has been cancelled
This commit is contained in:
@@ -39,7 +39,6 @@ from app.plugins.builtins.calendar.models import (
|
||||
)
|
||||
from app.plugins.builtins.calendar.recurrence import generate_occurrences
|
||||
from app.plugins.builtins.calendar.schemas import (
|
||||
from app.core.audit import log_audit
|
||||
BookResourceRequest,
|
||||
BulkAction,
|
||||
CalendarCreate,
|
||||
@@ -1024,3 +1023,5 @@ async def book_resource(
|
||||
"start_at": booking.start_at.isoformat(),
|
||||
"end_at": booking.end_at.isoformat(),
|
||||
}
|
||||
|
||||
from app.core.audit import log_audit
|
||||
@@ -64,7 +64,6 @@ from app.plugins.builtins.mail.schemas import (
|
||||
VacationConfig,
|
||||
)
|
||||
from app.plugins.builtins.mail.services import (
|
||||
from app.core.audit import log_audit
|
||||
MAX_ATTACHMENT_SIZE,
|
||||
_sanitize_filename,
|
||||
account_to_response,
|
||||
@@ -1862,3 +1861,5 @@ async def get_mail(
|
||||
.all()
|
||||
)
|
||||
return mail_to_response(mail, attachments=list(attachments), labels=list(label_assignments))
|
||||
|
||||
from app.core.audit import log_audit
|
||||
@@ -13,7 +13,6 @@ from app.core.visibility import apply_visibility_filter
|
||||
from app.deps import get_current_user, require_permission
|
||||
from app.plugins.builtins.tags.models import Tag, TagAssignment
|
||||
from app.plugins.builtins.tags.schemas import (
|
||||
from app.core.audit import log_audit
|
||||
TagAssignRequest,
|
||||
TagBulkAssignRequest,
|
||||
TagCreate,
|
||||
@@ -390,3 +389,5 @@ async def list_tag_entities(
|
||||
}
|
||||
for a in assignments
|
||||
]
|
||||
|
||||
from app.core.audit import log_audit
|
||||
@@ -11,7 +11,6 @@ from app.core.db import get_db
|
||||
from app.deps import get_current_user, require_permission
|
||||
from app.plugins.builtins.tasks import services
|
||||
from app.plugins.builtins.tasks.schemas import (
|
||||
from app.core.audit import log_audit
|
||||
TaskAssignRequest,
|
||||
TaskCreate,
|
||||
TaskDependencyRequest,
|
||||
@@ -262,3 +261,5 @@ async def decompose_goal(
|
||||
if result is None:
|
||||
raise HTTPException(404, detail={"detail": "Goal not found", "code": "not_found"})
|
||||
return result
|
||||
|
||||
from app.core.audit import log_audit
|
||||
Reference in New Issue
Block a user