dev@locazia: fix misprint
This commit is contained in:
1 parent
db2b6eff6f
commit
667d0f44a8
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user