trying to fix install error
This commit is contained in:
parent
819a25e362
commit
9867d67404
1 changed files with 6 additions and 4 deletions
10
nwcp.py
10
nwcp.py
|
|
@ -16,10 +16,10 @@ from lnbits.helpers import encrypt_internal_message
|
||||||
from lnbits.settings import settings
|
from lnbits.settings import settings
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
class Config:
|
class MainSubscription(BaseModel):
|
||||||
arbitrary_types_allowed = True
|
class Config:
|
||||||
|
arbitrary_types_allowed = True
|
||||||
|
|
||||||
class MainSubscription:
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.requests_sub_id: Optional[str] = None
|
self.requests_sub_id: Optional[str] = None
|
||||||
self.responses_sub_id: Optional[str] = None
|
self.responses_sub_id: Optional[str] = None
|
||||||
|
|
@ -46,7 +46,9 @@ class MainSubscription:
|
||||||
self.responses.append(event_id)
|
self.responses.append(event_id)
|
||||||
|
|
||||||
|
|
||||||
class NWCServiceProvider:
|
class NWCServiceProvider(BaseModel):
|
||||||
|
class Config:
|
||||||
|
arbitrary_types_allowed = True
|
||||||
def __init__(self, private_key: Optional[str] = None, relay: Optional[str] = None):
|
def __init__(self, private_key: Optional[str] = None, relay: Optional[str] = None):
|
||||||
if not relay: # Connect to nostrclient
|
if not relay: # Connect to nostrclient
|
||||||
relay = "nostrclient"
|
relay = "nostrclient"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue