Legacy service and task files now re-export from module locations: app/services/: - stats_service.py -> app.modules.analytics.services - usage_service.py -> app.modules.analytics.services app/tasks/celery_tasks/: - code_quality.py -> app.modules.dev_tools.tasks - test_runner.py -> app.modules.dev_tools.tasks Maintains backwards compatibility while actual code lives in self-contained modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
743 B
Python
32 lines
743 B
Python
# app/services/usage_service.py
|
|
"""
|
|
Usage and limits service - LEGACY LOCATION
|
|
|
|
This file exists for backward compatibility.
|
|
The canonical location is now: app/modules/analytics/services/usage_service.py
|
|
|
|
All imports should use the new location:
|
|
from app.modules.analytics.services import usage_service, UsageService
|
|
"""
|
|
|
|
# Re-export from canonical location for backward compatibility
|
|
from app.modules.analytics.services.usage_service import (
|
|
usage_service,
|
|
UsageService,
|
|
UsageData,
|
|
UsageMetricData,
|
|
TierInfoData,
|
|
UpgradeTierData,
|
|
LimitCheckData,
|
|
)
|
|
|
|
__all__ = [
|
|
"usage_service",
|
|
"UsageService",
|
|
"UsageData",
|
|
"UsageMetricData",
|
|
"TierInfoData",
|
|
"UpgradeTierData",
|
|
"LimitCheckData",
|
|
]
|