Refactor get walletclass (#1776)
* move `get_wallet_class` to wallets module * adjust imports, fix type issues flake8
This commit is contained in:
parent
9a0878de19
commit
bc55d52ea2
10 changed files with 45 additions and 29 deletions
|
|
@ -9,7 +9,7 @@ from lnbits.core.models import Payment
|
|||
from lnbits.core.views.admin_api import api_auditor
|
||||
from lnbits.core.views.api import api_payment
|
||||
from lnbits.db import DB_TYPE, SQLITE
|
||||
from lnbits.settings import get_wallet_class
|
||||
from lnbits.wallets import get_wallet_class
|
||||
from tests.conftest import CreateInvoiceData, api_payments_create_invoice
|
||||
|
||||
from ...helpers import get_random_invoice_data, is_fake, pay_real_invoice
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import string
|
|||
from subprocess import PIPE, Popen, run
|
||||
|
||||
from lnbits.core.crud import create_payment
|
||||
from lnbits.settings import get_wallet_class, set_wallet_class
|
||||
from lnbits.wallets import get_wallet_class, set_wallet_class
|
||||
|
||||
|
||||
async def credit_wallet(wallet_id: str, amount: int):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue