dev@locazia: fix misprint

This commit is contained in:
user 2024-03-10 01:24:16 +03:00
parent 6efffdc80c
commit ed88a38cd9
1 changed files with 1 additions and 1 deletions

View File

@ -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: