dev@locazia: fix misprint

This commit is contained in:
user committed 2024-03-08 01:36:04 +03:00
1 parent db2b6eff6f
commit 667d0f44a8
2 files changed
+2 -2

No files matched your search

+2 -1
View File
@@ -30,7 +30,8 @@ async def indexer_loop(platform_found: bool, seqno: int) -> [bool, int]:
last_known_index = session.query(StoredContent).filter(
StoredContent.type == "onchain/content"
).order_by(StoredContent.onchain_index.desc()).first()
last_known_index = last_known_index.onchain_index if last_known_index >= 0 else 0
last_known_index = last_known_index.onchain_index if last_known_index else 0
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