From 1e94ff60591abaf1828d040df63b84c71f0cdc36 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:47:07 +0200 Subject: [PATCH] allow to set default input option --- nostr_dvm/tasks/generic_dvm.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nostr_dvm/tasks/generic_dvm.py b/nostr_dvm/tasks/generic_dvm.py index 878e12d..06e5183 100644 --- a/nostr_dvm/tasks/generic_dvm.py +++ b/nostr_dvm/tasks/generic_dvm.py @@ -46,7 +46,8 @@ class GenericDVM(DVMTaskInterface): prompt = tag.as_vec()[1] request_form = {"jobID": event.id().to_hex()} - self.options["input"] = prompt + if prompt != "": + self.options["input"] = prompt request_form['options'] = json.dumps(self.options) return request_form diff --git a/setup.py b/setup.py index a258c90..6bba296 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -VERSION = '0.8.8' +VERSION = '0.8.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')