fix misprint
This commit is contained in:
1 parent
8f88ee9783
commit
7d6b1018ad
1 file changed
+4
-4
@@ -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()
|
existing = db_session.query(StoredContent).filter_by(hash=computed_hash_b58).first()
|
||||||
if existing:
|
if existing:
|
||||||
make_log("uploader_v1.5", f"File with hash {computed_hash_b58} already exists in DB", level="INFO")
|
make_log("uploader_v1.5", f"File with hash {computed_hash_b58} already exists in DB", level="INFO")
|
||||||
serialized_v2 = existing.serialize_v2()
|
serialized_v2 = existing.cid.serialize_v2()
|
||||||
serialized_v1 = existing.serialize_v1()
|
serialized_v1 = existing.cid.serialize_v1()
|
||||||
return response.json({
|
return response.json({
|
||||||
"upload_id": upload_id,
|
"upload_id": upload_id,
|
||||||
"content_sha256": computed_hash_b58,
|
"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")
|
make_log("uploader_v1.5", f"Database error: {e}", level="ERROR")
|
||||||
return response.json({"error": "Database error"}, status=500)
|
return response.json({"error": "Database error"}, status=500)
|
||||||
|
|
||||||
serialized_v2 = new_content.serialize_v2()
|
serialized_v2 = new_content.cid.serialize_v2()
|
||||||
serialized_v1 = new_content.serialize_v1()
|
serialized_v1 = new_content.cid.serialize_v1()
|
||||||
return response.json({
|
return response.json({
|
||||||
"upload_id": upload_id,
|
"upload_id": upload_id,
|
||||||
"content_sha256": computed_hash_b58,
|
"content_sha256": computed_hash_b58,
|
||||||
|
|||||||
Reference in new issue
Block a user