Selaa lähdekoodia

格式化代码

xueyiming 2 viikkoa sitten
vanhempi
commit
cba3ec63e2
1 muutettua tiedostoa jossa 10 lisäystä ja 8 poistoa
  1. 10 8
      routes/buleprint.py

+ 10 - 8
routes/buleprint.py

@@ -205,15 +205,17 @@ async def get_content():
 
     row = rows[0]
 
-    return jsonify({
-        "status_code": 200,
-        "detail": "success",
-        "data": {
-            "title": row.get("title", ""),
-            "text": row.get("text", ""),
-            "doc_id": row.get("doc_id", "")
+    return jsonify(
+        {
+            "status_code": 200,
+            "detail": "success",
+            "data": {
+                "title": row.get("title", ""),
+                "text": row.get("text", ""),
+                "doc_id": row.get("doc_id", ""),
+            },
         }
-    })
+    )
 
 
 @server_bp.route("/content/list", methods=["GET"])