mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-08 11:58:27 +02:00
fix gerty nitpicks
This commit is contained in:
parent
6d29cc85b0
commit
24e72d1e48
@ -406,7 +406,7 @@ async def get_satoshi():
|
||||
quote = satoshiQuotes[random.randint(0, len(satoshiQuotes) - 1)]
|
||||
# logger.debug(quote.text)
|
||||
if len(quote["text"]) > maxQuoteLength:
|
||||
logger.debug("Quote is too long, getting another")
|
||||
logger.trace("Quote is too long, getting another")
|
||||
return await get_satoshi()
|
||||
else:
|
||||
return quote
|
||||
|
@ -82,9 +82,9 @@ async def api_gerty_delete(
|
||||
raise HTTPException(status_code=HTTPStatus.NO_CONTENT)
|
||||
|
||||
|
||||
# @gerty_ext.get("/api/v1/gerty/satoshiquote", status_code=HTTPStatus.OK)
|
||||
# async def api_gerty_satoshi():
|
||||
# return await get_satoshi
|
||||
@gerty_ext.get("/api/v1/gerty/satoshiquote", status_code=HTTPStatus.OK)
|
||||
async def api_gerty_satoshi():
|
||||
return await get_satoshi
|
||||
|
||||
|
||||
@gerty_ext.get("/api/v1/gerty/pages/{gerty_id}/{p}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user