mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-19 03:46:35 +01:00
add option to deactivate "processing" feedback (on by default)
This commit is contained in:
@@ -135,8 +135,9 @@ class DVM:
|
|||||||
"[" + self.dvm_config.NIP89.NAME + "] Free task or Whitelisted for task " + task +
|
"[" + self.dvm_config.NIP89.NAME + "] Free task or Whitelisted for task " + task +
|
||||||
". Starting processing..")
|
". Starting processing..")
|
||||||
|
|
||||||
send_job_status_reaction(nip90_event, "processing", True, 0,
|
if dvm_config.SEND_FEEDBACK_EVENTS:
|
||||||
client=self.client, dvm_config=self.dvm_config)
|
send_job_status_reaction(nip90_event, "processing", True, 0,
|
||||||
|
client=self.client, dvm_config=self.dvm_config)
|
||||||
|
|
||||||
# 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
|
||||||
if user.iswhitelisted or task_is_free:
|
if user.iswhitelisted or task_is_free:
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ class DVMConfig:
|
|||||||
DB: str
|
DB: str
|
||||||
NEW_USER_BALANCE: int = 0 # Free credits for new users
|
NEW_USER_BALANCE: int = 0 # Free credits for new users
|
||||||
NIP89: NIP89Config
|
NIP89: NIP89Config
|
||||||
|
SEND_FEEDBACK_EVENTS = True
|
||||||
SHOW_RESULT_BEFORE_PAYMENT: bool = False # if this is true show results even when not paid right after autoprocess
|
SHOW_RESULT_BEFORE_PAYMENT: bool = False # if this is true show results even when not paid right after autoprocess
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user