make format

This commit is contained in:
callebtc
2022-10-10 21:53:25 +02:00
parent 370fe3b02b
commit 7c93daa05a
2 changed files with 6 additions and 11 deletions

View File

@@ -3,21 +3,17 @@ import sys
from fastapi import FastAPI
from loguru import logger
from starlette.middleware import Middleware
from starlette.middleware.base import BaseHTTPMiddleware
from starlette_context import context
from starlette_context.middleware import RawContextMiddleware
from cashu.core.settings import DEBUG, VERSION
from starlette_context.middleware import RawContextMiddleware
from starlette.middleware import Middleware
from starlette_context import context
from .router import router
from .startup import load_ledger
from starlette.middleware.base import BaseHTTPMiddleware
class CustomHeaderMiddleware(BaseHTTPMiddleware):
"""
Middleware for starlette that can set the context from request headers

View File

@@ -6,10 +6,11 @@ import math
from typing import Dict, List, Set
from loguru import logger
from starlette_context import context
import cashu.core.legacy as legacy
import cashu.core.b_dhke as b_dhke
import cashu.core.bolt11 as bolt11
import cashu.core.legacy as legacy
from cashu.core.base import (
BlindedMessage,
BlindedSignature,
@@ -37,8 +38,6 @@ from cashu.mint.crud import (
update_lightning_invoice,
)
from starlette_context import context
class Ledger:
def __init__(self, secret_key: str, db: str, derivation_path=""):