Update content_discovery_currently_popular.py

This commit is contained in:
Believethehype
2024-03-05 16:29:21 +01:00
parent b4db309c9e
commit ff2d7d4de5

View File

@ -98,6 +98,7 @@ class DicoverContentCurrentlyPopular(DVMTaskInterface):
events = cli.database().query([filter1])
ns.finallist = {}
for event in events:
if event.created_at().as_secs() > timestamp_hour_ago:
ns.finallist[event.id().to_hex()] = 0
filt = Filter().kinds([9735, 7, 1]).event(event.id()).since(lasthour)
reactions = cli.database().query([filt])