mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-01 02:39:18 +02:00
cleanup
This commit is contained in:
parent
85bc9eabb7
commit
4d9917c850
@ -317,8 +317,6 @@ class Bot:
|
||||
|
||||
dvms = [x for x in self.dvm_config.SUPPORTED_DVMS if
|
||||
x.PUBLIC_KEY == nostr_event.pubkey().to_hex() and x.KIND == nostr_event.kind() - 1000]
|
||||
print(dvms[0])
|
||||
|
||||
if len(dvms) > 0:
|
||||
dvm = dvms[0]
|
||||
if dvm.dvm_config.EXTERNAL_POST_PROCESS_TYPE != PostProcessFunctionType.NONE:
|
||||
|
@ -180,7 +180,6 @@ def get_amount_per_task(task, dvm_config, duration=1):
|
||||
for dvm in dvm_config.SUPPORTED_DVMS: # this is currently just one
|
||||
if dvm.TASK == task:
|
||||
amount = dvm.FIX_COST + (dvm.PER_UNIT_COST * duration)
|
||||
print("Cost: " + str(amount))
|
||||
return amount
|
||||
else:
|
||||
print("[" + dvm_config.SUPPORTED_DVMS[
|
||||
|
Loading…
x
Reference in New Issue
Block a user