minor updates to olas dvm

This commit is contained in:
Believethehype 2024-12-03 16:46:13 +01:00
parent b553c9aa96
commit b5c2fdd1e7
2 changed files with 5 additions and 5 deletions

View File

@ -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 = ""

View File

@ -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,