From db0f6e65ef4f6bab629daa19d90cc121404efef0 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Thu, 30 Oct 2025 12:47:04 +0800 Subject: [PATCH] fix typing issue --- routstr/proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routstr/proxy.py b/routstr/proxy.py index 6ee50749..bbad2f13 100644 --- a/routstr/proxy.py +++ b/routstr/proxy.py @@ -3,7 +3,7 @@ from typing import Any from fastapi import APIRouter, Depends, HTTPException, Request from fastapi.responses import Response, StreamingResponse -from sqlmodel import select +from sqlmodel import col, select from .auth import pay_for_request, revert_pay_for_request, validate_bearer_key from .core import get_logger @@ -106,7 +106,7 @@ async def refresh_model_maps() -> None: # Get all disabled model IDs from database to filter them out disabled_result = await session.exec( - select(ModelRow.id).where(~ModelRow.enabled) + select(ModelRow.id).where(not col(ModelRow.enabled)) ) disabled_model_ids = {row for row in disabled_result.all()}