dev@locazia: ui fixes
This commit is contained in:
1 parent
606ef553bc
commit
b4b7a878f4
2 files changed
+12
-2
No files matched your search
@@ -28,6 +28,16 @@ async def indexer_loop(platform_found: bool, seqno: int) -> [bool, int]:
|
||||
|
||||
make_log("Indexer", "Service running", level="debug")
|
||||
with db_session() as session:
|
||||
content_without_cid = session.query(StoredContent).filter(
|
||||
StoredContent.content_id == None
|
||||
)
|
||||
for target_content in content_without_cid:
|
||||
target_cid = target_content.cid.serialize_v2()
|
||||
make_log("Indexer", f"Content without CID: {target_content.hash}, setting CID: {target_cid}", level="debug")
|
||||
target_content.content_id = target_cid
|
||||
|
||||
session.commit()
|
||||
|
||||
last_known_index = session.query(StoredContent).filter(
|
||||
StoredContent.type == "onchain/content"
|
||||
).order_by(StoredContent.onchain_index.desc()).first()
|
||||
|
||||
Reference in new issue
Block a user