From a287bc4b42233bc345cf6319173f58e0587caaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Tue, 7 Mar 2023 15:28:55 +0100 Subject: [PATCH] format scrub --- __init__.py | 2 +- config.json | 2 +- manifest.json | 14 +++++++------- tasks.py | 2 +- views_api.py | 13 ++++++++----- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/__init__.py b/__init__.py index 6746942..eef09be 100644 --- a/__init__.py +++ b/__init__.py @@ -1,8 +1,8 @@ import asyncio +from typing import List from fastapi import APIRouter from fastapi.staticfiles import StaticFiles -from typing import List from lnbits.db import Database from lnbits.helpers import template_renderer diff --git a/config.json b/config.json index 93eb871..5c23218 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "name": "Scrub", "short_description": "Pass payments to LNURLp/LNaddress", - "tile": "/scrub/static/image/scrub.png", + "tile": "/scrub/static/image/scrub.png", "contributors": ["arcbtc", "talvasconcelos"] } diff --git a/manifest.json b/manifest.json index 33a4564..32faaba 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,9 @@ { - "repos": [ - { - "id": "scrub", - "organisation": "lnbits", - "repository": "scrub" - } - ] + "repos": [ + { + "id": "scrub", + "organisation": "lnbits", + "repository": "scrub" + } + ] } diff --git a/tasks.py b/tasks.py index fea8a77..c8b85e4 100644 --- a/tasks.py +++ b/tasks.py @@ -8,9 +8,9 @@ from fastapi import HTTPException from lnbits import bolt11 +from lnbits.core.crud import get_standalone_payment from lnbits.core.models import Payment from lnbits.core.services import pay_invoice -from lnbits.core.crud import get_standalone_payment from lnbits.helpers import get_current_extension_name from lnbits.tasks import register_invoice_listener diff --git a/views_api.py b/views_api.py index 868da09..3e04333 100644 --- a/views_api.py +++ b/views_api.py @@ -1,15 +1,18 @@ from http import HTTPStatus -from loguru import logger from fastapi import Depends, Query +from loguru import logger from starlette.exceptions import HTTPException from lnbits.core.crud import get_user -from lnbits.decorators import WalletTypeInfo, get_key_type, require_admin_key, check_admin - - +from lnbits.decorators import ( + WalletTypeInfo, + check_admin, + get_key_type, + require_admin_key, +) -from . import scrub_ext, scheduled_tasks +from . import scheduled_tasks, scrub_ext from .crud import ( create_scrub_link, delete_scrub_link,