mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 12:32:34 +02:00
formatting
This commit is contained in:
@@ -2,12 +2,11 @@ from typing import Optional
|
|||||||
|
|
||||||
from lnbits.core.crud import create_payment
|
from lnbits.core.crud import create_payment
|
||||||
from lnbits.helpers import urlsafe_short_hash
|
from lnbits.helpers import urlsafe_short_hash
|
||||||
from lnbits.settings import Settings, read_only_variables
|
from lnbits.settings import Settings, read_only_variables, settings
|
||||||
from lnbits.tasks import internal_invoice_queue
|
from lnbits.tasks import internal_invoice_queue
|
||||||
|
|
||||||
from . import db
|
from . import db
|
||||||
from .models import AdminSettings, UpdateSettings
|
from .models import AdminSettings, UpdateSettings
|
||||||
from lnbits.settings import settings
|
|
||||||
|
|
||||||
|
|
||||||
async def update_wallet_balance(wallet_id: str, amount: int):
|
async def update_wallet_balance(wallet_id: str, amount: int):
|
||||||
|
@@ -2,9 +2,7 @@
|
|||||||
<q-card-section class="q-pa-none">
|
<q-card-section class="q-pa-none">
|
||||||
<h6 class="q-my-none">User Management</h6>
|
<h6 class="q-my-none">User Management</h6>
|
||||||
<br />
|
<br />
|
||||||
<p class="q-my-none">
|
<p class="q-my-none">Super Admin: {{ settings.lnbits_admin_users[0] }}</p>
|
||||||
Super Admin: {{ settings.lnbits_admin_users[0] }}
|
|
||||||
</p>
|
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<p>Admin Users</p>
|
<p>Admin Users</p>
|
||||||
|
@@ -13,7 +13,6 @@ from lnbits.server import server_restart
|
|||||||
from .crud import delete_settings, get_settings, update_settings, update_wallet_balance
|
from .crud import delete_settings, get_settings, update_settings, update_wallet_balance
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@admin_ext.get(
|
@admin_ext.get(
|
||||||
"/api/v1/restart/", status_code=HTTPStatus.OK, dependencies=[Depends(check_admin)]
|
"/api/v1/restart/", status_code=HTTPStatus.OK, dependencies=[Depends(check_admin)]
|
||||||
)
|
)
|
||||||
|
@@ -21,7 +21,13 @@ def list_parse_fallback(v):
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
read_only_variables = ["host", "port", "lnbits_commit", "lnbits_path", "forwarded_allow_ips"]
|
read_only_variables = [
|
||||||
|
"host",
|
||||||
|
"port",
|
||||||
|
"lnbits_commit",
|
||||||
|
"lnbits_path",
|
||||||
|
"forwarded_allow_ips",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class Settings(BaseSettings):
|
class Settings(BaseSettings):
|
||||||
|
@@ -7,6 +7,8 @@ from typing import AsyncGenerator, Dict, Optional
|
|||||||
import httpx
|
import httpx
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
|
from lnbits.settings import settings
|
||||||
|
|
||||||
from .base import (
|
from .base import (
|
||||||
InvoiceResponse,
|
InvoiceResponse,
|
||||||
PaymentResponse,
|
PaymentResponse,
|
||||||
@@ -15,8 +17,6 @@ from .base import (
|
|||||||
Wallet,
|
Wallet,
|
||||||
)
|
)
|
||||||
|
|
||||||
from lnbits.settings import settings
|
|
||||||
|
|
||||||
|
|
||||||
class LnTipsWallet(Wallet):
|
class LnTipsWallet(Wallet):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Reference in New Issue
Block a user