From 9ed700977b77998e41ddd1f2eddf9e415ff908d6 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 14 Jul 2026 08:27:27 +0000 Subject: [PATCH] Fix NameError: add Query to fastapi imports in invoices.py Query was used at lines 2121 and 2242 (token query-param auth on image preview endpoints) but never imported, causing the backend to crash on startup. Co-Authored-By: Claude Sonnet 4.6 --- backend/api/invoices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/invoices.py b/backend/api/invoices.py index a36eb8b..2f6e16b 100644 --- a/backend/api/invoices.py +++ b/backend/api/invoices.py @@ -6,7 +6,7 @@ from datetime import date, timedelta from decimal import Decimal from typing import Optional -from fastapi import APIRouter, Depends, HTTPException, Request, UploadFile, File, BackgroundTasks +from fastapi import APIRouter, Depends, HTTPException, Query, Request, UploadFile, File, BackgroundTasks from fastapi.responses import FileResponse from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy import select, func, text