Quicksave

This commit is contained in:
Mawoka
2025-08-22 12:33:15 +02:00
parent bd659895ad
commit 51f1d74cf2
45 changed files with 15682 additions and 2572 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class IpResponse(BaseModel):
@router.get("/ip-lookup/{ip}", response_model=IpResponse)
async def get_ip_data(ip: str, _: User = Depends(get_current_user)):
async with ClientSession() as session, session.get(f"http://ip-api.com/json/{ip}") as response:
data = await response.model_dump_json()
data = await response.json()
try:
return IpResponse(**data)
except ValidationError: