mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-07-23 18:22:13 +02:00
Update content_discovery_currently_popular.py
This commit is contained in:
@@ -157,7 +157,9 @@ class DicoverContentCurrentlyPopular(DVMTaskInterface):
|
|||||||
print("Syncing Notes of last hour.. this might take a while..")
|
print("Syncing Notes of last hour.. this might take a while..")
|
||||||
dbopts = NegentropyOptions().direction(NegentropyDirection.DOWN)
|
dbopts = NegentropyOptions().direction(NegentropyDirection.DOWN)
|
||||||
cli.reconcile(filter1, dbopts)
|
cli.reconcile(filter1, dbopts)
|
||||||
database.delete(Filter().until(Timestamp.now().as_secs() - 4600)) #Clear old events so db doesnt get too full.
|
database.delete(Filter().until(Timestamp.from_secs(
|
||||||
|
Timestamp.now().as_secs() - 3600))) # Clear old events so db doesnt get too full.
|
||||||
|
|
||||||
print("Done Syncing Notes of Last hour.")
|
print("Done Syncing Notes of Last hour.")
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user