minor adjustments for mostr

This commit is contained in:
Believethehype 2024-11-13 20:08:31 +01:00
parent 01513747a8
commit dcb93ada6f
2 changed files with 1 additions and 7 deletions

View File

@ -108,18 +108,12 @@ class DicoverContentCurrentlyPopularMostr(DVMTaskInterface):
ns = SimpleNamespace()
options = self.set_options(request_form)
sk = SecretKey.from_hex(self.dvm_config.PRIVATE_KEY)
keys = Keys.parse(sk.to_hex())
database = NostrDatabase.lmdb(self.db_name)
try:
await database.delete(Filter().until(Timestamp.from_secs(
Timestamp.now().as_secs() - self.db_since)))
except Exception as e:
print(e)
cli = ClientBuilder().signer(keys).database(database).build()
timestamp_since = Timestamp.now().as_secs() - self.db_since
since = Timestamp.from_secs(timestamp_since)

View File

@ -11,7 +11,7 @@ from nostr_dvm.utils.admin_utils import AdminConfig
from nostr_dvm.utils.dvmconfig import build_default_config
from nostr_dvm.utils.nip89_utils import create_amount_tag, NIP89Config, check_and_set_d_tag
rebroadcast_NIP89 = True # Announce NIP89 on startup
rebroadcast_NIP89 = False # Announce NIP89 on startup
rebroadcast_NIP65_Relay_List = False
update_profile = False