This commit is contained in:
user 2024-04-05 23:13:28 +03:00
parent 5b86b919f6
commit 5476111aab
1 changed files with 3 additions and 0 deletions

View File

@ -47,8 +47,11 @@ async def license_index_loop(memory, platform_found: bool, seqno: int) -> [bool,
UserContent.updated < (datetime.now() - timedelta(minutes=15)),
)
):
make_log("LicenseIndex", f"Syncing content with blockchain: {content.id}", level="info")
try:
await content.sync_with_chain(session)
content.updated = datetime.now()
session.commit()
except BaseException as e:
make_log("LicenseIndex", f"Error: {e}" + '\n' + traceback.format_exc(), level="error")