mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-26 17:41:43 +01:00
fixes
This commit is contained in:
parent
c26db73650
commit
2e318d26bc
@ -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
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user