20240926-0007
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
在开始之前,请确保安装了以下库。可以使用 `pip` 来安装这些依赖:
|
||||
|
||||
```bash
|
||||
pip install Flask flask-cors cryptography requests
|
||||
pip install Flask flask-cors cryptography requests
|
||||
pip install pandas
|
||||
pip install numpy
|
||||
```
|
||||
|
||||
## 使用说明
|
||||
|
||||
@@ -72,7 +72,6 @@ def register_user():
|
||||
'Timestamp': timestamp
|
||||
}
|
||||
|
||||
# 确保所有数据类型都是 JSON 可序列化的
|
||||
json_serializable_data = {k: (str(v) if isinstance(v, (pd.Timestamp, datetime)) else v) for k, v in response_data.items()}
|
||||
|
||||
return jsonify(json_serializable_data), 200
|
||||
Reference in New Issue
Block a user