From ed88a38cd9031f80a386d3fb955b1290cc05225c Mon Sep 17 00:00:00 2001 From: user Date: Sun, 10 Mar 2024 01:24:16 +0300 Subject: [PATCH] dev@locazia: fix misprint --- app/core/content/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/content/utils.py b/app/core/content/utils.py index 9131be0..6f9a8b8 100644 --- a/app/core/content/utils.py +++ b/app/core/content/utils.py @@ -36,7 +36,7 @@ async def create_new_content( ) db_session.add(new_content) db_session.commit() - new_content = db_session.query(StoredContent).filter(StoredContent.hash == content_hash).first() + new_content = db_session.query(StoredContent).filter(StoredContent.hash == content_hash_b58).first() assert new_content, "Content not created (through utils)" content_filepath = os.path.join(UPLOADS_DIR, content_hash_b58) async with aiofiles.open(content_filepath, 'wb') as file: