fix: old env variables
This commit is contained in:
parent
99e7bf5cd0
commit
b5a39e32c3
2 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ from .utils import decoded_as_lndhub, to_buffer
|
||||||
|
|
||||||
@lndhub_ext.get("/ext/getinfo")
|
@lndhub_ext.get("/ext/getinfo")
|
||||||
async def lndhub_getinfo():
|
async def lndhub_getinfo():
|
||||||
return {"alias": LNBITS_SITE_TITLE}
|
return {"alias": settings.lnbits_site_title}
|
||||||
|
|
||||||
|
|
||||||
class AuthData(BaseModel):
|
class AuthData(BaseModel):
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ from lnbits.core.models import Payment
|
||||||
from lnbits.core.services import create_invoice
|
from lnbits.core.services import create_invoice
|
||||||
from lnbits.core.views.api import api_payment
|
from lnbits.core.views.api import api_payment
|
||||||
from lnbits.decorators import WalletTypeInfo, get_key_type, require_admin_key
|
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 . import tpos_ext
|
||||||
from .crud import create_tpos, delete_tpos, get_tpos, get_tposs
|
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:
|
async with httpx.AsyncClient() as client:
|
||||||
try:
|
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)
|
r = await client.get(lnurl, follow_redirects=True, headers=headers)
|
||||||
if r.is_error:
|
if r.is_error:
|
||||||
lnurl_response = {"success": False, "detail": "Error loading"}
|
lnurl_response = {"success": False, "detail": "Error loading"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue