mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-09-29 04:03:43 +02:00
fixes
This commit is contained in:
@@ -191,7 +191,7 @@ class DVM:
|
|||||||
|
|
||||||
if dvm_config.SEND_FEEDBACK_EVENTS:
|
if dvm_config.SEND_FEEDBACK_EVENTS:
|
||||||
send_job_status_reaction(nip90_event, "processing", True, 0,
|
send_job_status_reaction(nip90_event, "processing", True, 0,
|
||||||
content=dvm_config.CUSTOM_PROCESSING_MESSAGE,
|
content=self.dvm_config.CUSTOM_PROCESSING_MESSAGE,
|
||||||
client=self.client, dvm_config=self.dvm_config, user=user)
|
client=self.client, dvm_config=self.dvm_config, user=user)
|
||||||
|
|
||||||
# when we reimburse users on error make sure to not send anything if it was free
|
# when we reimburse users on error make sure to not send anything if it was free
|
||||||
@@ -219,7 +219,7 @@ class DVM:
|
|||||||
". Starting processing.. Balance remains at: " + str(user.balance))
|
". Starting processing.. Balance remains at: " + str(user.balance))
|
||||||
|
|
||||||
send_job_status_reaction(nip90_event, "processing", True, 0,
|
send_job_status_reaction(nip90_event, "processing", True, 0,
|
||||||
content=dvm_config.CUSTOM_PROCESSING_MESSAGE,
|
content=self.dvm_config.CUSTOM_PROCESSING_MESSAGE,
|
||||||
client=self.client, dvm_config=self.dvm_config)
|
client=self.client, dvm_config=self.dvm_config)
|
||||||
|
|
||||||
do_work(nip90_event, amount)
|
do_work(nip90_event, amount)
|
||||||
@@ -312,7 +312,7 @@ class DVM:
|
|||||||
if amount <= invoice_amount:
|
if amount <= invoice_amount:
|
||||||
print("[" + self.dvm_config.NIP89.NAME + "] Payment-request fulfilled...")
|
print("[" + self.dvm_config.NIP89.NAME + "] Payment-request fulfilled...")
|
||||||
send_job_status_reaction(job_event, "processing", client=self.client,
|
send_job_status_reaction(job_event, "processing", client=self.client,
|
||||||
content=dvm_config.CUSTOM_PROCESSING_MESSAGE,
|
content=self.dvm_config.CUSTOM_PROCESSING_MESSAGE,
|
||||||
dvm_config=self.dvm_config, user=user)
|
dvm_config=self.dvm_config, user=user)
|
||||||
indices = [i for i, x in enumerate(self.job_list) if
|
indices = [i for i, x in enumerate(self.job_list) if
|
||||||
x.event == job_event]
|
x.event == job_event]
|
||||||
@@ -660,6 +660,7 @@ class DVM:
|
|||||||
|
|
||||||
job.is_paid = True
|
job.is_paid = True
|
||||||
send_job_status_reaction(job.event, "processing", True, 0,
|
send_job_status_reaction(job.event, "processing", True, 0,
|
||||||
|
content=self.dvm_config.CUSTOM_PROCESSING_MESSAGE,
|
||||||
client=self.client,
|
client=self.client,
|
||||||
dvm_config=self.dvm_config)
|
dvm_config=self.dvm_config)
|
||||||
print("[" + self.dvm_config.NIP89.NAME + "] doing work from joblist")
|
print("[" + self.dvm_config.NIP89.NAME + "] doing work from joblist")
|
||||||
|
@@ -247,8 +247,8 @@ def build_example(name, identifier, admin_config, processing_msg=None):
|
|||||||
nip89config.DTAG = check_and_set_d_tag(identifier, name, dvm_config.PRIVATE_KEY, nip89info["image"])
|
nip89config.DTAG = check_and_set_d_tag(identifier, name, dvm_config.PRIVATE_KEY, nip89info["image"])
|
||||||
nip89config.CONTENT = json.dumps(nip89info)
|
nip89config.CONTENT = json.dumps(nip89info)
|
||||||
|
|
||||||
admin_config.UPDATE_PROFILE = False
|
# admin_config.UPDATE_PROFILE = False
|
||||||
admin_config.REBROADCAST_NIP89 = False
|
# admin_config.REBROADCAST_NIP89 = False
|
||||||
|
|
||||||
return DicoverContentCurrentlyPopularFollowers(name=name, dvm_config=dvm_config, nip89config=nip89config,
|
return DicoverContentCurrentlyPopularFollowers(name=name, dvm_config=dvm_config, nip89config=nip89config,
|
||||||
admin_config=admin_config)
|
admin_config=admin_config)
|
||||||
|
2
setup.py
2
setup.py
@@ -1,6 +1,6 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
VERSION = '0.3.8'
|
VERSION = '0.3.9'
|
||||||
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
|
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
|
||||||
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')
|
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user