summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Bolger <dylan.bolger00@gmail.com>2026-08-17 17:26:30 -0500
committerDylan Bolger <dylan.bolger00@gmail.com>2026-08-17 17:26:30 -0500
commita66e172ca8d6bd59c57bc9563bb165ddad67ef82 (patch)
tree03564631302218789601f8a48fc929d96a44ef70
parentcb06c5b689db596c6d27dd8f2777e16e56250695 (diff)
downloadphotoblog-a66e172ca8d6bd59c57bc9563bb165ddad67ef82.tar.xz
photoblog-a66e172ca8d6bd59c57bc9563bb165ddad67ef82.zip
kill swagger/oas, log output
-rw-r--r--app/main.py6
-rw-r--r--app/services/images.py1
2 files changed, 6 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py
index fac1daa..d4b5046 100644
--- a/app/main.py
+++ b/app/main.py
@@ -4,7 +4,11 @@ from fastapi.templating import Jinja2Templates
from .routers import web
from .services import images
-app = FastAPI()
+app = FastAPI(
+ docs_url=None,
+ redoc_url=None,
+ openapi_url=None
+ )
app.state.image_service = images
app.state.templates = Jinja2Templates(directory="./app/templates")
app.include_router(web.router)
diff --git a/app/services/images.py b/app/services/images.py
index ac4984a..ab4e0b8 100644
--- a/app/services/images.py
+++ b/app/services/images.py
@@ -16,5 +16,6 @@ def cache_images():
def get_all_images():
if not image_cache:
cache_images()
+ print(f"returning {len(image_cache)} images")
shuffled = random.sample(list(image_cache), k=len(image_cache))
return shuffled