This commit is contained in:
ben 2022-12-19 13:24:08 +00:00
parent 53be745737
commit e69f2be1f0

View file

@ -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)