mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 06:48:02 +01:00
format
This commit is contained in:
parent
53be745737
commit
e69f2be1f0
1 changed files with 4 additions and 2 deletions
|
@ -8,9 +8,9 @@ import httpx
|
|||
from loguru import logger
|
||||
|
||||
from lnbits.core.crud import get_user, get_wallet_for_key
|
||||
from lnbits.settings import settings
|
||||
from lnbits.utils.exchange_rates import satoshis_amount_as_fiat
|
||||
|
||||
from lnbits.settings import settings
|
||||
from .crud import get_gerty, get_mempool_info
|
||||
from .number_prefixer import *
|
||||
|
||||
|
@ -405,7 +405,9 @@ async def api_get_mining_stat(stat_slug: str, gerty):
|
|||
|
||||
async def get_satoshi():
|
||||
maxQuoteLength = 186
|
||||
with open(os.path.join(settings.lnbits_path, "extensions/gerty/static/satoshi.json")) as fd:
|
||||
with open(
|
||||
os.path.join(settings.lnbits_path, "extensions/gerty/static/satoshi.json")
|
||||
) as fd:
|
||||
satoshiQuotes = json.load(fd)
|
||||
quote = satoshiQuotes[random.randint(0, len(satoshiQuotes) - 1)]
|
||||
# logger.debug(quote.text)
|
||||
|
|
Loading…
Add table
Reference in a new issue