fixes
This commit is contained in:
parent
69b7ab9fdf
commit
c8456f0fac
|
|
@ -179,8 +179,8 @@ async def s_api_v1_content_friendly_list(request):
|
||||||
|
|
||||||
result += f"""
|
result += f"""
|
||||||
<tr>
|
<tr>
|
||||||
<td>{content.cid}</td>
|
<td>{content.cid.serialize_v2()}</td>
|
||||||
<td>{metadata['title']}</td>
|
<td>{metadata.get('name', "")}</td>
|
||||||
<td>{content.meta.get('item_address')}</td>
|
<td>{content.meta.get('item_address')}</td>
|
||||||
<td><a href="{preview_link}">Preview</a></td>
|
<td><a href="{preview_link}">Preview</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -191,8 +191,5 @@ async def s_api_v1_content_friendly_list(request):
|
||||||
</html>
|
</html>
|
||||||
"""
|
"""
|
||||||
return response.html(result)
|
return response.html(result)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]:
|
||||||
for hint_message in session.query(KnownTelegramMessage).filter(
|
for hint_message in session.query(KnownTelegramMessage).filter(
|
||||||
and_(
|
and_(
|
||||||
KnownTelegramMessage.chat_id == user.telegram_id,
|
KnownTelegramMessage.chat_id == user.telegram_id,
|
||||||
KnownTelegramMessage.message_type == 'hint',
|
KnownTelegramMessage.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