fix gerty nitpicks
This commit is contained in:
parent
6d29cc85b0
commit
24e72d1e48
2 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue