修复了一些buf

This commit is contained in:
LeonspaceX
2025-10-09 22:03:51 +08:00
parent 1a6b34bf6a
commit 9289a0b6c7
2 changed files with 6 additions and 1 deletions

View File

@@ -150,6 +150,8 @@
"content": "文章内容", "content": "文章内容",
"created_at": "2024-05-10T12:00:00+00:00", "created_at": "2024-05-10T12:00:00+00:00",
"updated_at": "2024-05-10T12:00:00+00:00", "updated_at": "2024-05-10T12:00:00+00:00",
"upvotes": 114,
"downvotes": 514,
"status": "Pass" "status": "Pass"
} }
] ]
@@ -173,6 +175,7 @@
#### 12. 提交投诉 #### 12. 提交投诉
- **URL**: `POST /report` - **URL**: `POST /report`
- **请求参数JSON**: - **请求参数JSON**:
```json ```json
{ {
"id": 123, "id": 123,

View File

@@ -449,6 +449,8 @@ def get_10_info():
"content": s.content, "content": s.content,
"created_at": s.created_at.isoformat(), "created_at": s.created_at.isoformat(),
"updated_at": s.updated_at.isoformat(), "updated_at": s.updated_at.isoformat(),
"upvotes": s.upvotes,
"downvotes": s.downvotes,
"status": s.status "status": s.status
} for s in page_posts]), 200 } for s in page_posts]), 200
@@ -817,4 +819,4 @@ if __name__ == '__main__':
with app.app_context(): with app.app_context():
initialize_database() initialize_database()
NEED_AUDIT = get_config("need_audit", "false").lower() == "true" NEED_AUDIT = get_config("need_audit", "false").lower() == "true"
app.run(host='0.0.0.0', port=5000, debug=True) app.run(host='0.0.0.0', port=5000)