fixes
This commit is contained in:
parent
5b86b919f6
commit
5476111aab
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue