fixed typo
Build and publish bnuy api / build (push) Successful in 13m9s

This commit is contained in:
2026-05-13 00:08:00 +02:00
parent a48cfce63d
commit 6be41ce8fc
4 changed files with 12 additions and 11 deletions
+1
View File
@@ -1,6 +1,7 @@
# bnuy-api
POST_LIMIT=20
LOG_LEVEL=INFO
FORWARDED_ALLOW_IPS=172.16.0.0/12
# Database MariaDB
DB_HOST=mariadb
+1 -1
View File
@@ -88,7 +88,7 @@ async def get_random_bnuy(request: Request):
if result:
filepath = os.path.join("data/images", result[0])
if os.path.exists(filepath):
return {"url": f"{request.base_url}/images/{result[0]}", "source": f"https://www.reddit.com/r/{result[1]}/", "original_url": result[2]}
return {"url": f"{request.base_url}images/{result[0]}", "source": f"https://www.reddit.com/r/{result[1]}/", "original_url": result[2]}
else:
raise HTTPException(status_code=404, detail="Image file not found")
else: