From 47db503d87455648bd723c1535dbafea7242db2a Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Thu, 16 May 2024 12:20:24 +0200 Subject: [PATCH] fixes --- nostr_dvm/dvm.py | 7 ++++--- .../tasks/content_discovery_currently_popular_followers.py | 4 ++-- setup.py | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/nostr_dvm/dvm.py b/nostr_dvm/dvm.py index 2649439..ea5a10b 100644 --- a/nostr_dvm/dvm.py +++ b/nostr_dvm/dvm.py @@ -191,7 +191,7 @@ def handle_nip90_job_event(nip90_event): if dvm_config.SEND_FEEDBACK_EVENTS: 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) # when we reimburse users on error make sure to not send anything if it was free @@ -219,7 +219,7 @@ def handle_nip90_job_event(nip90_event): ". Starting processing.. Balance remains at: " + str(user.balance)) 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) do_work(nip90_event, amount) @@ -312,7 +312,7 @@ def handle_zap(zap_event): if amount <= invoice_amount: print("[" + self.dvm_config.NIP89.NAME + "] Payment-request fulfilled...") 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) indices = [i for i, x in enumerate(self.job_list) if x.event == job_event] @@ -660,6 +660,7 @@ def do_work(job_event, amount): job.is_paid = True send_job_status_reaction(job.event, "processing", True, 0, + content=self.dvm_config.CUSTOM_PROCESSING_MESSAGE, client=self.client, dvm_config=self.dvm_config) print("[" + self.dvm_config.NIP89.NAME + "] doing work from joblist") diff --git a/nostr_dvm/tasks/content_discovery_currently_popular_followers.py b/nostr_dvm/tasks/content_discovery_currently_popular_followers.py index 3d8b605..9401541 100644 --- a/nostr_dvm/tasks/content_discovery_currently_popular_followers.py +++ b/nostr_dvm/tasks/content_discovery_currently_popular_followers.py @@ -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.CONTENT = json.dumps(nip89info) - admin_config.UPDATE_PROFILE = False - admin_config.REBROADCAST_NIP89 = False + # admin_config.UPDATE_PROFILE = False + # admin_config.REBROADCAST_NIP89 = False return DicoverContentCurrentlyPopularFollowers(name=name, dvm_config=dvm_config, nip89config=nip89config, admin_config=admin_config) diff --git a/setup.py b/setup.py index 328624d..d6be0bd 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ 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' LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')