mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-09-29 20:53:43 +02:00
minor adjustments for mostr
This commit is contained in:
@@ -108,18 +108,12 @@ class DicoverContentCurrentlyPopularMostr(DVMTaskInterface):
|
|||||||
|
|
||||||
ns = SimpleNamespace()
|
ns = SimpleNamespace()
|
||||||
options = self.set_options(request_form)
|
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)
|
database = NostrDatabase.lmdb(self.db_name)
|
||||||
try:
|
try:
|
||||||
await database.delete(Filter().until(Timestamp.from_secs(
|
await database.delete(Filter().until(Timestamp.from_secs(
|
||||||
Timestamp.now().as_secs() - self.db_since)))
|
Timestamp.now().as_secs() - self.db_since)))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
cli = ClientBuilder().signer(keys).database(database).build()
|
|
||||||
|
|
||||||
timestamp_since = Timestamp.now().as_secs() - self.db_since
|
timestamp_since = Timestamp.now().as_secs() - self.db_since
|
||||||
since = Timestamp.from_secs(timestamp_since)
|
since = Timestamp.from_secs(timestamp_since)
|
||||||
|
|
||||||
|
@@ -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.dvmconfig import build_default_config
|
||||||
from nostr_dvm.utils.nip89_utils import create_amount_tag, NIP89Config, check_and_set_d_tag
|
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
|
rebroadcast_NIP65_Relay_List = False
|
||||||
update_profile = False
|
update_profile = False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user