Bad env calls
This commit is contained in:
parent
fcaf6967fa
commit
53be745737
3 changed files with 2 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ from loguru import logger
|
|||
from lnbits.core.crud import get_user, get_wallet_for_key
|
||||
from lnbits.utils.exchange_rates import satoshis_amount_as_fiat
|
||||
|
||||
from ...settings import LNBITS_PATH
|
||||
from lnbits.settings import settings
|
||||
from .crud import get_gerty, get_mempool_info
|
||||
from .number_prefixer import *
|
||||
|
||||
|
|
@ -405,7 +405,7 @@ async def api_get_mining_stat(stat_slug: str, gerty):
|
|||
|
||||
async def get_satoshi():
|
||||
maxQuoteLength = 186
|
||||
with open(os.path.join(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)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ from starlette.responses import HTMLResponse
|
|||
|
||||
from lnbits.core.models import User
|
||||
from lnbits.decorators import check_user_exists
|
||||
from lnbits.settings import LNBITS_CUSTOM_LOGO, LNBITS_SITE_TITLE
|
||||
|
||||
from . import gerty_ext, gerty_renderer
|
||||
from .crud import get_gerty
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ from lnbits.decorators import WalletTypeInfo, get_key_type, require_admin_key
|
|||
from lnbits.utils.exchange_rates import satoshis_amount_as_fiat
|
||||
|
||||
from . import gerty_ext
|
||||
from ...settings import LNBITS_PATH
|
||||
from .crud import (
|
||||
create_gerty,
|
||||
delete_gerty,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue