chore: code format

This commit is contained in:
Vlad Stan 2023-02-10 17:25:02 +02:00
parent 8678090e7b
commit ebada934b0
6 changed files with 32 additions and 29 deletions

View file

@ -24,12 +24,12 @@ async def index(request: Request, user: User = Depends(check_user_exists)):
@nostrrelay_ext.get("/{relay_id}")
async def nostrrelay(request: Request, relay_id: str):
relay_public_data = await get_public_relay(relay_id)
if not relay_public_data:
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND,
detail="Cannot find relay",
)
status_code=HTTPStatus.NOT_FOUND,
detail="Cannot find relay",
)
if request.headers.get("accept") == "application/nostr+json":
return JSONResponse(