This commit is contained in:
Believethehype 2024-05-31 10:55:29 +02:00
parent c26db73650
commit 2e318d26bc
3 changed files with 6 additions and 3 deletions

View File

@ -138,7 +138,9 @@ class DicoverContentCurrentlyPopularZaps(DVMTaskInterface):
invoice_amount = parse_amount_from_bolt11_invoice(tag.as_vec()[1])
# print(invoice_amount)
if tag.as_vec()[0] == 'preimage':
haspreimage = True # TODO further check preimage
if len(tag.as_vec()) > 1:
if tag.as_vec()[1] != "":
haspreimage = True # TODO further check preimage
if haspreimage:
ns.finallist[event.id().to_hex()] = invoice_amount

View File

@ -204,7 +204,7 @@ class DicoverContentCurrentlyPopularFollowers(DVMTaskInterface):
lasthour = Timestamp.from_secs(timestamp_hour_ago)
filter1 = Filter().kinds([definitions.EventDefinitions.KIND_NOTE, definitions.EventDefinitions.KIND_REACTION,
definitions.EventDefinitions.KIND_ZAP]).since(lasthour) # Notes, reactions, zaps
definitions.EventDefinitions.KIND_ZAP, definitions.EventDefinitions.KIND_REPOST]).since(lasthour) # Notes, reactions, zaps
# filter = Filter().author(keys.public_key())
print("[" + self.dvm_config.NIP89.NAME + "] Syncing notes of the last " + str(

View File

@ -201,7 +201,8 @@ class DicoverContentCurrentlyPopularbyTopic(DVMTaskInterface):
since = Timestamp.from_secs(timestamp_since)
filter1 = Filter().kinds([EventDefinitions.KIND_NOTE, EventDefinitions.KIND_REACTION, EventDefinitions.KIND_ZAP,
EventDefinitions.KIND_LONGFORM]).since(since) # Notes, reactions, zaps
definitions.EventDefinitions.KIND_REPOST
]).since(since) # Notes, reactions, zaps
# filter = Filter().author(keys.public_key())
print("[" + self.dvm_config.NIP89.NAME + "] Syncing notes of the last " + str(