From b5da913caf652d7c4e39be6b3cc24a028cf44c90 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Mon, 18 Mar 2024 23:04:01 +0100 Subject: [PATCH] Update subscription.py --- nostr_dvm/subscription.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nostr_dvm/subscription.py b/nostr_dvm/subscription.py index c7ba831..0daa014 100644 --- a/nostr_dvm/subscription.py +++ b/nostr_dvm/subscription.py @@ -45,9 +45,7 @@ class Subscription: self.job_list = [] print("Nostr Subscription Handler public key: " + str(pk.to_bech32()) + " Hex: " + str( - pk.to_hex()) + " Name: " + self.NAME + - " Supported DVM tasks: " + - ', '.join(p.NAME + ":" + p.TASK for p in self.dvm_config.SUPPORTED_DVMS) + "\n") + pk.to_hex()) + "\n") for relay in self.dvm_config.RELAY_LIST: self.client.add_relay(relay) @@ -304,7 +302,7 @@ class Subscription: else: delete_threshold = 60 * 60 * 24 * 365 if subscription.cadence == "daily": - delete_threshold = 60 * 60 * 24 * 7 # After 7 days, delete the subscription, user can make a new one + delete_threshold = 60 * 60 * 24 * 3 # After 3 days, delete the subscription, user can make a new one elif subscription.cadence == "weekly": delete_threshold = 60 * 60 * 24 * 21 # After 21 days, delete the subscription, user can make a new one elif subscription.cadence == "monthly":