Migrate TickTick OAuth and action tasks
This commit is contained in:
@@ -7,6 +7,7 @@ from app.auth_db import get_auth_db_session
|
||||
from app.config import Settings, get_settings
|
||||
from app.db import get_db_session
|
||||
from app.integrations.homeassistant import HomeAssistantClient
|
||||
from app.integrations.ticktick import TickTickClient
|
||||
from app.poo_db import get_poo_db_session
|
||||
from app.services.auth import AuthenticatedSession, get_authenticated_session
|
||||
from app.services.config_page import build_runtime_settings
|
||||
@@ -32,6 +33,10 @@ def get_homeassistant_client(settings: Settings = Depends(get_app_settings)) ->
|
||||
return HomeAssistantClient(settings)
|
||||
|
||||
|
||||
def get_ticktick_client(settings: Settings = Depends(get_app_settings)) -> TickTickClient:
|
||||
return TickTickClient(settings)
|
||||
|
||||
|
||||
def get_current_auth_session(
|
||||
request: Request,
|
||||
session: Session = Depends(get_auth_db),
|
||||
|
||||
Reference in New Issue
Block a user