fix: resolve indentation and import errors in backend
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled

- Fix indentation in main.py (scheduler if/else blocks)
- Fix indentation in deps.py (credentials check)
- Fix indentation in auctions.py (filter blocks)
- Add BackgroundTasks import to admin.py
- Fix settings import in yield_domains.py (use get_settings())
This commit is contained in:
yves.gugger
2025-12-12 15:06:47 +01:00
parent 1705b5cc6e
commit dc12f14638
5 changed files with 18 additions and 16 deletions

View File

@ -11,7 +11,7 @@ Provides admin-only access to:
from datetime import datetime, timedelta
from pathlib import Path
from typing import Optional
from fastapi import APIRouter, HTTPException, status, Depends
from fastapi import APIRouter, HTTPException, status, Depends, BackgroundTasks
from pydantic import BaseModel, EmailStr
from sqlalchemy import select, func, desc

View File

@ -15,7 +15,9 @@ from sqlalchemy.orm import Session
from app.api.deps import get_db, get_current_user
from app.models.user import User
from app.models.yield_domain import YieldDomain, YieldTransaction, YieldPayout, AffiliatePartner
from app.config import settings
from app.config import get_settings
settings = get_settings()
from app.schemas.yield_domain import (
YieldDomainCreate,
YieldDomainUpdate,