From a0d0b04e782c26a8bab429aee899ba4b5c66aa3c Mon Sep 17 00:00:00 2001 From: Maxim Vershinin Date: Mon, 28 Sep 2026 19:33:12 +0400 Subject: [PATCH] fix(web): add missing Request import and update .gitignore --- .gitignore | 51 +++++++++++++++++++++++++++++++++- src/disk_checker/web/routes.py | 2 +- 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c29af83..8f769db 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,52 @@ .vscode __pycache__ -test_data \ No newline at end of file +test_data + +# Python +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# Virtual environments +venv/ +ENV/ +env/ + +# IDE +.idea/ +*.swp +*.swo + +# Environment variables +.env +.env.local + +# Test coverage +.htmlcov/ +.coverage +.coverage.* +coverage.xml + +# Pytest +.pytest_cache/ + +# Generated files +*.png +*.csv +data/samples/*.csv \ No newline at end of file diff --git a/src/disk_checker/web/routes.py b/src/disk_checker/web/routes.py index c226f7b..313a326 100644 --- a/src/disk_checker/web/routes.py +++ b/src/disk_checker/web/routes.py @@ -5,7 +5,7 @@ import tempfile from pathlib import Path from typing import List, Optional -from fastapi import APIRouter, UploadFile, File, HTTPException, Depends +from fastapi import APIRouter, UploadFile, File, HTTPException, Depends, Request from fastapi.responses import JSONResponse, FileResponse import pandas as pd