chore: code clean-up

This commit is contained in:
Vlad Stan 2023-03-14 14:22:04 +02:00
parent 3e0b480f0a
commit 90bbc79734
2 changed files with 1 additions and 3 deletions

View file

@ -9,7 +9,6 @@ from .crud import (
create_direct_message, create_direct_message,
create_order, create_order,
get_merchant_by_pubkey, get_merchant_by_pubkey,
get_merchant_for_user,
get_order, get_order,
get_order_by_event_id, get_order_by_event_id,
get_products_by_ids, get_products_by_ids,
@ -114,7 +113,7 @@ async def handle_order_paid(order_id: str, merchant_pubkey: str):
async def process_nostr_message(msg: str): async def process_nostr_message(msg: str):
try: try:
type, *rest= json.loads(msg) type, *rest = json.loads(msg)
if type.upper() == "EVENT": if type.upper() == "EVENT":
subscription_id, event = rest subscription_id, event = rest
subscription_name, merchant_public_key = subscription_id.split(":") subscription_name, merchant_public_key = subscription_id.split(":")

View file

@ -13,7 +13,6 @@ from lnbits.decorators import (
require_admin_key, require_admin_key,
require_invoice_key, require_invoice_key,
) )
from lnbits.extensions.nostrmarket.helpers import get_shared_secret
from lnbits.utils.exchange_rates import currencies from lnbits.utils.exchange_rates import currencies
from . import nostrmarket_ext, scheduled_tasks from . import nostrmarket_ext, scheduled_tasks