mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-10 01:12:38 +02:00
small fixes
This commit is contained in:
@@ -449,7 +449,7 @@ class DVM:
|
|||||||
status == "processing" and not is_paid)
|
status == "processing" and not is_paid)
|
||||||
or (status == "success" and not is_paid)):
|
or (status == "success" and not is_paid)):
|
||||||
|
|
||||||
if dvm_config.LNBITS_INVOICE_KEY != "":
|
if dvm_config.LNBITS_INVOICE_KEY != "" and bolt11 is not None:
|
||||||
amount_tag = Tag.parse(["amount", str(amount * 1000), bolt11])
|
amount_tag = Tag.parse(["amount", str(amount * 1000), bolt11])
|
||||||
else:
|
else:
|
||||||
amount_tag = Tag.parse(["amount", str(amount * 1000)]) # to millisats
|
amount_tag = Tag.parse(["amount", str(amount * 1000)]) # to millisats
|
||||||
|
@@ -115,8 +115,11 @@ class AdvancedSearchWine(DVMTaskInterface):
|
|||||||
data = ob['data']
|
data = ob['data']
|
||||||
result_list = []
|
result_list = []
|
||||||
for el in data:
|
for el in data:
|
||||||
e_tag = Tag.parse(["e", el['id']])
|
try:
|
||||||
result_list.append(e_tag.as_vec())
|
e_tag = Tag.parse(["e", el['id']])
|
||||||
|
result_list.append(e_tag.as_vec())
|
||||||
|
except Exception as e:
|
||||||
|
print("ERROR: " + str(e))
|
||||||
|
|
||||||
|
|
||||||
return json.dumps(result_list)
|
return json.dumps(result_list)
|
||||||
|
Reference in New Issue
Block a user