fix min index
This commit is contained in:
parent
7448023642
commit
f0ded2158e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue