fix messages error
This commit is contained in:
parent
bf2caeae42
commit
5a523f4d66
|
|
@ -216,7 +216,7 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]:
|
||||||
user_uploader_wrapper = Wrapped_CBotChat(memory._telegram_bot, chat_id=user.telegram_id, user=user, db_session=session)
|
user_uploader_wrapper = Wrapped_CBotChat(memory._telegram_bot, chat_id=user.telegram_id, user=user, db_session=session)
|
||||||
for hint_message in session.query(KnownTelegramMessage).filter(
|
for hint_message in session.query(KnownTelegramMessage).filter(
|
||||||
and_(
|
and_(
|
||||||
KnownTelegramMessage.user_id == user.id,
|
KnownTelegramMessage.chat_id == user.telegram_id,
|
||||||
KnownTelegramMessage.message_type == 'hint',
|
KnownTelegramMessage.message_type == 'hint',
|
||||||
KnownTelegramMessage.meta.contains({'encrypted_content_hash': encrypted_stored_content.hash})
|
KnownTelegramMessage.meta.contains({'encrypted_content_hash': encrypted_stored_content.hash})
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue