Skip to content

Commit

Permalink
fix order imports to make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Sep 7, 2024
1 parent 66e5f66 commit f2d4d45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions views.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from http import HTTPStatus

from fastapi import APIRouter, Depends, Request
from starlette.exceptions import HTTPException
from starlette.responses import HTMLResponse

from lnbits.core.models import User
from lnbits.decorators import check_user_exists
from lnbits.helpers import template_renderer
from starlette.exceptions import HTTPException
from starlette.responses import HTMLResponse

from .crud import get_card_by_external_id, get_hits, get_refunds

Expand Down
1 change: 0 additions & 1 deletion views_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from http import HTTPStatus

from fastapi import APIRouter, Depends, HTTPException, Query

from lnbits.core.crud import get_user
from lnbits.core.models import WalletTypeInfo
from lnbits.decorators import get_key_type, require_admin_key
Expand Down
3 changes: 1 addition & 2 deletions views_lnurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@

import bolt11
from fastapi import APIRouter, HTTPException, Query, Request
from lnbits.core.services import create_invoice, pay_invoice
from lnurl import encode as lnurl_encode
from lnurl.types import LnurlPayMetadata
from loguru import logger
from starlette.responses import HTMLResponse

from lnbits.core.services import create_invoice, pay_invoice

from .crud import (
create_hit,
get_card,
Expand Down

0 comments on commit f2d4d45

Please sign in to comment.