From 6895b8fe1d4fff9afefe1bf973551656255472da Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Tue, 19 Mar 2024 01:26:57 +0100 Subject: [PATCH] Update content_discovery_currently_popular.py --- nostr_dvm/tasks/content_discovery_currently_popular.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nostr_dvm/tasks/content_discovery_currently_popular.py b/nostr_dvm/tasks/content_discovery_currently_popular.py index b740345..3a20103 100644 --- a/nostr_dvm/tasks/content_discovery_currently_popular.py +++ b/nostr_dvm/tasks/content_discovery_currently_popular.py @@ -157,7 +157,9 @@ class DicoverContentCurrentlyPopular(DVMTaskInterface): print("Syncing Notes of last hour.. this might take a while..") dbopts = NegentropyOptions().direction(NegentropyDirection.DOWN) 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.")