mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 12:32:34 +02:00
fix gerty nitpicks
This commit is contained in:
@@ -406,7 +406,7 @@ async def get_satoshi():
|
|||||||
quote = satoshiQuotes[random.randint(0, len(satoshiQuotes) - 1)]
|
quote = satoshiQuotes[random.randint(0, len(satoshiQuotes) - 1)]
|
||||||
# logger.debug(quote.text)
|
# logger.debug(quote.text)
|
||||||
if len(quote["text"]) > maxQuoteLength:
|
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()
|
return await get_satoshi()
|
||||||
else:
|
else:
|
||||||
return quote
|
return quote
|
||||||
|
@@ -82,9 +82,9 @@ async def api_gerty_delete(
|
|||||||
raise HTTPException(status_code=HTTPStatus.NO_CONTENT)
|
raise HTTPException(status_code=HTTPStatus.NO_CONTENT)
|
||||||
|
|
||||||
|
|
||||||
# @gerty_ext.get("/api/v1/gerty/satoshiquote", status_code=HTTPStatus.OK)
|
@gerty_ext.get("/api/v1/gerty/satoshiquote", status_code=HTTPStatus.OK)
|
||||||
# async def api_gerty_satoshi():
|
async def api_gerty_satoshi():
|
||||||
# return await get_satoshi
|
return await get_satoshi
|
||||||
|
|
||||||
|
|
||||||
@gerty_ext.get("/api/v1/gerty/pages/{gerty_id}/{p}")
|
@gerty_ext.get("/api/v1/gerty/pages/{gerty_id}/{p}")
|
||||||
|
Reference in New Issue
Block a user