fix meta
This commit is contained in:
1 parent
fa6f27a9ce
commit
a31a40e690
5 files changed
+26
-19
No files matched your search
@@ -203,7 +203,11 @@ async def convert_loop(memory):
|
||||
if wallet_owner_connection:
|
||||
wallet_owner_user = wallet_owner_connection.user
|
||||
wallet_owner_bot = Wrapped_CBotChat(memory._client_telegram_bot, chat_id=wallet_owner_user.telegram_id, user=wallet_owner_user, db_session=session)
|
||||
unprocessed_encrypted_content.meta['upload_notify_msg_id'] = await wallet_owner_bot.send_content(session, unprocessed_encrypted_content)
|
||||
unprocessed_encrypted_content.meta = {
|
||||
**unprocessed_encrypted_content.meta,
|
||||
'upload_notify_msg_id': await wallet_owner_bot.send_content(session, unprocessed_encrypted_content)
|
||||
}
|
||||
|
||||
session.commit()
|
||||
|
||||
async def main_fn(memory):
|
||||
|
||||
@@ -247,8 +247,10 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]:
|
||||
return platform_found, seqno
|
||||
|
||||
encrypted_stored_content.updated = datetime.now()
|
||||
if encrypted_stored_content.meta != item_metadata_packed:
|
||||
encrypted_stored_content.meta = item_metadata_packed
|
||||
encrypted_stored_content.meta = {
|
||||
**encrypted_stored_content.meta,
|
||||
**item_metadata_packed
|
||||
}
|
||||
|
||||
session.commit()
|
||||
return platform_found, seqno
|
||||
|
||||
Reference in new issue
Block a user