mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-05 18:53:35 +02:00
Update external_dvm_utils.py
This commit is contained in:
@@ -33,8 +33,9 @@ def build_external_dvm(pubkey, task, kind, fix_cost, per_unit_cost, config,
|
|||||||
nip90params = {}
|
nip90params = {}
|
||||||
encryption_supported = False
|
encryption_supported = False
|
||||||
cashu_accepted = False
|
cashu_accepted = False
|
||||||
print(nip89content_str)
|
|
||||||
if nip89content_str is not None:
|
if nip89content_str is not None:
|
||||||
|
print(nip89content_str)
|
||||||
nip89content = json.loads(nip89content_str)
|
nip89content = json.loads(nip89content_str)
|
||||||
if nip89content.get("name"):
|
if nip89content.get("name"):
|
||||||
name = nip89content.get("name")
|
name = nip89content.get("name")
|
||||||
@@ -48,7 +49,8 @@ def build_external_dvm(pubkey, task, kind, fix_cost, per_unit_cost, config,
|
|||||||
encryption_supported = nip89content["encryptionSupported"]
|
encryption_supported = nip89content["encryptionSupported"]
|
||||||
if nip89content.get("cashuAccepted"):
|
if nip89content.get("cashuAccepted"):
|
||||||
cashu_accepted = nip89content["cashuAccepted"]
|
cashu_accepted = nip89content["cashuAccepted"]
|
||||||
|
else:
|
||||||
|
print("No NIP89 set for "+ name)
|
||||||
nip89info = {
|
nip89info = {
|
||||||
"name": name,
|
"name": name,
|
||||||
"image": image,
|
"image": image,
|
||||||
|
Reference in New Issue
Block a user