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 loguru import logger
|
||||||
|
|
||||||
from lnbits.core.crud import get_user, get_wallet_for_key
|
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.utils.exchange_rates import satoshis_amount_as_fiat
|
||||||
|
|
||||||
from lnbits.settings import settings
|
|
||||||
from .crud import get_gerty, get_mempool_info
|
from .crud import get_gerty, get_mempool_info
|
||||||
from .number_prefixer import *
|
from .number_prefixer import *
|
||||||
|
|
||||||
|
|
@ -405,7 +405,9 @@ async def api_get_mining_stat(stat_slug: str, gerty):
|
||||||
|
|
||||||
async def get_satoshi():
|
async def get_satoshi():
|
||||||
maxQuoteLength = 186
|
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)
|
satoshiQuotes = json.load(fd)
|
||||||
quote = satoshiQuotes[random.randint(0, len(satoshiQuotes) - 1)]
|
quote = satoshiQuotes[random.randint(0, len(satoshiQuotes) - 1)]
|
||||||
# logger.debug(quote.text)
|
# logger.debug(quote.text)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue