From b5c2fdd1e716af13eca94613e478fbf449486c88 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:46:13 +0100 Subject: [PATCH] minor updates to olas dvm --- .../tasks/content_discovery_currently_popular_gallery.py | 2 +- tests/discovery_gallery.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nostr_dvm/tasks/content_discovery_currently_popular_gallery.py b/nostr_dvm/tasks/content_discovery_currently_popular_gallery.py index 0241eec..cba6ce1 100644 --- a/nostr_dvm/tasks/content_discovery_currently_popular_gallery.py +++ b/nostr_dvm/tasks/content_discovery_currently_popular_gallery.py @@ -33,7 +33,7 @@ class DicoverContentCurrentlyPopularGallery(DVMTaskInterface): last_schedule: int db_since = 3600 db_name = "db/nostr_recent_gallery.db" - min_reactions = 2 + min_reactions = 1 personalized = False result = "" diff --git a/tests/discovery_gallery.py b/tests/discovery_gallery.py index 3b007a8..6915be0 100644 --- a/tests/discovery_gallery.py +++ b/tests/discovery_gallery.py @@ -11,7 +11,7 @@ from nostr_dvm.utils.nip89_utils import create_amount_tag, NIP89Config, check_an rebroadcast_NIP89 = True # Announce NIP89 on startup rebroadcast_NIP65_Relay_List = False -update_profile = False +update_profile = True global_update_rate = 500 # set this high on first sync so db can fully sync before another process trys to. use_logger = True @@ -34,7 +34,7 @@ def build_example_gallery(name, identifier, admin_config, options, image, cost=0 "name": name, "picture": image, "image": image, - "about": "I show popular notes people put in their galleries", + "about": "I show popular notes from the Olas feed", "lud16": dvm_config.LN_ADDRESS, "supportsEncryption": True, "acceptsNutZaps": dvm_config.ENABLE_NUTZAP, @@ -71,13 +71,13 @@ def playground(): options_gallery = { "db_name": "db/nostr_gallery.db", - "db_since": 60 * 60 * 24 * 3, # 1h since gmt, + "db_since": 60 * 60 * 24 * 2, # 2d since gmt, } cost = 0 image = "https://image.nostr.build/f5901156825ef1d9dad557890020ce9c5d917f52bc31863226b980fa232a9c23.png" - discover_gallery = build_example_gallery("Popular Gallery Entries", + discover_gallery = build_example_gallery("Popular on Olas", "discovery_gallery_entries", admin_config=admin_config_global_gallery, options=options_gallery,