fix
This commit is contained in:
1 parent
2318a752b9
commit
f75902a97e
2 files changed
+5
-3
No files matched your search
@@ -7,7 +7,7 @@ from app.core._keyboards import get_inline_keyboard
|
||||
|
||||
|
||||
class PlayerTemplates:
|
||||
async def send_content(self, content: StoredContent, extra_buttons=None, message_id=None):
|
||||
async def send_content(self, db_session, content: StoredContent, extra_buttons=None, message_id=None):
|
||||
local_content = None
|
||||
content_type, content_encoding = 'application', 'x-binary'
|
||||
cd_log = ""
|
||||
@@ -19,7 +19,9 @@ class PlayerTemplates:
|
||||
if not content.encrypted:
|
||||
local_content = content
|
||||
else:
|
||||
local_content = content.decrypted_content
|
||||
local_content = db_session.query(StoredContent).filter_by(
|
||||
id=content.decrypted_content_id
|
||||
).first()
|
||||
# TODO: add check decrypted_content by .format_json()['content_cid']
|
||||
if local_content:
|
||||
cd_log += f"Decrypted: {local_content.hash}. "
|
||||
|
||||
Reference in new issue
Block a user