fix: old env variables

This commit is contained in:
Vlad Stan 2022-12-09 14:13:41 +02:00
parent 99e7bf5cd0
commit b5a39e32c3
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ from .utils import decoded_as_lndhub, to_buffer
@lndhub_ext.get("/ext/getinfo")
async def lndhub_getinfo():
return {"alias": LNBITS_SITE_TITLE}
return {"alias": settings.lnbits_site_title}
class AuthData(BaseModel):

View File

@ -12,7 +12,7 @@ from lnbits.core.models import Payment
from lnbits.core.services import create_invoice
from lnbits.core.views.api import api_payment
from lnbits.decorators import WalletTypeInfo, get_key_type, require_admin_key
from lnbits.settings import LNBITS_COMMIT
from lnbits.settings import settings
from . import tpos_ext
from .crud import create_tpos, delete_tpos, get_tpos, get_tposs
@ -135,7 +135,7 @@ async def api_tpos_pay_invoice(
async with httpx.AsyncClient() as client:
try:
headers = {"user-agent": f"lnbits/tpos commit {LNBITS_COMMIT[:7]}"}
headers = {"user-agent": f"lnbits/tpos commit {settings.lnbits_commit[:7]}"}
r = await client.get(lnurl, follow_redirects=True, headers=headers)
if r.is_error:
lnurl_response = {"success": False, "detail": "Error loading"}