tfse-model-api-v0.2/db/tfse.py

20 lines
414 B
Python
Raw Normal View History

2021-11-15 04:07:20 +08:00
"""
天府股交项目数据库
"""
import pymongo
client = pymongo.MongoClient('mongodb://{}:{}@{}:{}'.format('admin', 'fecr1105', '116.63.159.166', 27017))
def find_threshold(param):
"""
根据行业查询阈值
Parameters:
param:
Returns:
threshold
"""
collection = client['database']['collection']
data = collection.find({}, {'_id': False})
return list(data)