fix misprint

This commit is contained in:
user 2025-02-25 17:26:39 +03:00
parent 8f88ee9783
commit 7d6b1018ad
1 changed files with 4 additions and 4 deletions

View File

@ -145,8 +145,8 @@ async def s_api_v1_5_storage_post(request):
existing = db_session.query(StoredContent).filter_by(hash=computed_hash_b58).first()
if existing:
make_log("uploader_v1.5", f"File with hash {computed_hash_b58} already exists in DB", level="INFO")
serialized_v2 = existing.serialize_v2()
serialized_v1 = existing.serialize_v1()
serialized_v2 = existing.cid.serialize_v2()
serialized_v1 = existing.cid.serialize_v1()
return response.json({
"upload_id": upload_id,
"content_sha256": computed_hash_b58,
@ -174,8 +174,8 @@ async def s_api_v1_5_storage_post(request):
make_log("uploader_v1.5", f"Database error: {e}", level="ERROR")
return response.json({"error": "Database error"}, status=500)
serialized_v2 = new_content.serialize_v2()
serialized_v1 = new_content.serialize_v1()
serialized_v2 = new_content.cid.serialize_v2()
serialized_v1 = new_content.cid.serialize_v1()
return response.json({
"upload_id": upload_id,
"content_sha256": computed_hash_b58,