dev@locazia: fix misprint
This commit is contained in:
1 parent
bb959865e7
commit
85d422377c
1 file changed
+1
-1
@@ -35,7 +35,7 @@ async def s_api_v1_storage_post(request):
|
||||
|
||||
try:
|
||||
file_hash = b58encode(hashlib.sha256(file_content).digest()).decode()
|
||||
stored_content = db_session.query(StoredContent).filter(StoredContent.hash == file_hash).first()
|
||||
stored_content = request.ctx.db_session.query(StoredContent).filter(StoredContent.hash == file_hash).first()
|
||||
if stored_content:
|
||||
stored_cid = stored_content.cid.serialize_v1()
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user