Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
believethehype committed May 16, 2024
1 parent d7c0c91 commit 47db503
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions nostr_dvm/dvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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')

Expand Down

0 comments on commit 47db503

Please sign in to comment.