fix contract get methods

This commit is contained in:
user committed 2025-03-05 03:28:01 +03:00
1 parent f0ded2158e
commit 219dadb35b
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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, 1)
last_known_index = max(last_known_index, 0)
make_log("Indexer", f"Last known index: {last_known_index}", level="debug")
next_item_index = last_known_index + 1