This commit is contained in:
user committed 2024-04-05 23:13:28 +03:00
1 parent 5b86b919f6
commit 5476111aab
1 file changed
+3
+3
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")