20 lines
414 B
Python
20 lines
414 B
Python
|
"""
|
||
|
天府股交项目数据库
|
||
|
"""
|
||
|
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)
|