From f0ded2158ee29766fb938015299f77fbba0859c7 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 5 Mar 2025 03:15:09 +0300 Subject: [PATCH] fix min index --- app/core/background/indexer_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/background/indexer_service.py b/app/core/background/indexer_service.py index d0b942b..e356304 100644 --- a/app/core/background/indexer_service.py +++ b/app/core/background/indexer_service.py @@ -105,7 +105,7 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]: StoredContent.onchain_index != None ).order_by(StoredContent.onchain_index.desc()).first() last_known_index = last_known_index.onchain_index if last_known_index else 0 - last_known_index = max(last_known_index, 0) + last_known_index = max(last_known_index, 1) make_log("Indexer", f"Last known index: {last_known_index}", level="debug") next_item_index = last_known_index + 1