fix: remove broken service re-exports from __init__.py — fixes ImportError on startup

This commit is contained in:
leocrm-bot
2026-07-04 18:14:30 +02:00
parent 1c059369fc
commit 047b59a1f3
2 changed files with 21 additions and 46 deletions
+14 -13
View File
@@ -1,27 +1,28 @@
{ {
"project_name": "leocrm", "project_name": "leocrm",
"phase": "phase-6-complete", "phase": "phase-6-deployment-broken",
"status": "phase_6_deployment_complete", "status": "coolify_app_down_unhealthy",
"last_commit": "1d3fccc", "last_commit": "1c05936",
"forgejo_synced": true, "forgejo_synced": true,
"completed_tasks": ["T01","T02","T03","T04","T05","T06","T07a","T07b","T08a","T08b","T08c","T09","T10","T11"], "completed_tasks": ["T01","T02","T03","T04","T05","T06","T07a","T07b","T08a","T08b","T08c","T09","T10","T11"],
"current_task": null, "current_task": "fix-coolify-deployment",
"next_task": "phase7-release", "next_task": "phase7-release",
"test_results": { "test_results": {
"backend_tests": "564/564 passed", "backend_tests": "564/564 passed (as of 2026-07-02)",
"frontend_tests": "318/318 passed", "frontend_tests": "318/318 passed (as of 2026-07-02)",
"coverage": "85.41%" "coverage": "85.41%"
}, },
"runtime_results": { "runtime_results": {
"app_start": "successful", "app_start": "unknown — needs verification after redeploy",
"health_endpoint": "200 OK", "health_endpoint": "unknown — Coolify status exited:unhealthy",
"swagger": "200 OK" "swagger": "unknown"
}, },
"deployment_results": { "deployment_results": {
"url": "https://crm.media-on.de", "url": "https://crm.media-on.de",
"status": "running:healthy", "status": "exited:unhealthy",
"health_check": "200 OK", "health_check": "not responding",
"swagger": "200 OK" "swagger": "unknown",
"coolify_uuid": "stvabl4vaqru7jclx4ittzr3"
}, },
"updated_at": "2026-07-02T09:27:00+02:00" "updated_at": "2026-07-04T18:10:00+02:00"
} }
+7 -33
View File
@@ -1,34 +1,8 @@
"""Service layer package.""" """Service layer package.
from app.services.address_service import address_service # noqa: F401 Routes import service modules directly, e.g.:
from app.services.ai_copilot_service import ( from app.services import address_service
execute_action as copilot_execute_action, # noqa: F401
) This works via Python's module system without needing
from app.services.ai_copilot_service import ( explicit re-exports in __init__.py.
get_history as copilot_get_history, # noqa: F401 """
)
from app.services.ai_copilot_service import (
process_query as copilot_process_query, # noqa: F401
)
from app.services.attachment_service import attachment_service # noqa: F401
from app.services.currency_service import currency_service # noqa: F401
from app.services.plugin_service import PluginService, get_plugin_service # noqa: F401
from app.services.sequence_service import sequence_service # noqa: F401
from app.services.system_settings_service import system_settings_service # noqa: F401
from app.services.tax_service import tax_service # noqa: F401
from app.services.workflow_service import (
advance_instance, # noqa: F401
auto_reject_timeout, # noqa: F401
cancel_instance, # noqa: F401
check_timeout, # noqa: F401
create_instance, # noqa: F401
create_workflow, # noqa: F401
delete_workflow, # noqa: F401
find_workflows_for_event, # noqa: F401
get_instance, # noqa: F401
get_workflow, # noqa: F401
list_instances, # noqa: F401
list_workflows, # noqa: F401
start_instance_for_event, # noqa: F401
update_workflow, # noqa: F401
)