mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-04 18:33:10 +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.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 . import db
|
||||
from .models import AdminSettings, UpdateSettings
|
||||
from lnbits.settings import settings
|
||||
|
||||
|
||||
async def update_wallet_balance(wallet_id: str, amount: int):
|
||||
|
@@ -2,9 +2,7 @@
|
||||
<q-card-section class="q-pa-none">
|
||||
<h6 class="q-my-none">User Management</h6>
|
||||
<br />
|
||||
<p class="q-my-none">
|
||||
Super Admin: {{ settings.lnbits_admin_users[0] }}
|
||||
</p>
|
||||
<p class="q-my-none">Super Admin: {{ settings.lnbits_admin_users[0] }}</p>
|
||||
<br />
|
||||
<div>
|
||||
<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
|
||||
|
||||
|
||||
|
||||
@admin_ext.get(
|
||||
"/api/v1/restart/", status_code=HTTPStatus.OK, dependencies=[Depends(check_admin)]
|
||||
)
|
||||
|
@@ -21,7 +21,13 @@ def list_parse_fallback(v):
|
||||
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):
|
||||
|
@@ -7,6 +7,8 @@ from typing import AsyncGenerator, Dict, Optional
|
||||
import httpx
|
||||
from loguru import logger
|
||||
|
||||
from lnbits.settings import settings
|
||||
|
||||
from .base import (
|
||||
InvoiceResponse,
|
||||
PaymentResponse,
|
||||
@@ -15,8 +17,6 @@ from .base import (
|
||||
Wallet,
|
||||
)
|
||||
|
||||
from lnbits.settings import settings
|
||||
|
||||
|
||||
class LnTipsWallet(Wallet):
|
||||
def __init__(self):
|
||||
|
Reference in New Issue
Block a user