dev@locazia: fix indexer
This commit is contained in:
1 parent
dae4a6f123
commit
c4be5a8099
2 files changed
+2
-2
No files matched your search
@@ -20,7 +20,7 @@ def get_git_info():
|
||||
|
||||
async def s_api_v1_node(request): # /api/v1/node
|
||||
last_known_index = request.ctx.db_session.query(StoredContent).filter(
|
||||
StoredContent.type == "onchain/content"
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user