Commit e27b9683 authored by wang's avatar wang

wn test

parent dfa6b4af
No preview for this file type
This diff is collapsed.
...@@ -27,7 +27,8 @@ db = client.env ...@@ -27,7 +27,8 @@ db = client.env
# 查询所有文档 # 查询所有文档
if platform.uname().system != 'Darwin': if platform.uname().system != 'Darwin':
# , 'success': {'$gte': 30} # , 'success': {'$gte': 30}
result = db.env_shape.find({'env.funcs' :{'$ne': None}, 'env.navigatorparams.useragent': {'$regex': 'iPhone'}}) # , 'env.navigatorparams.useragent': {'$regex': 'iPhone'}}
result = db.env_shape.find({'env.funcs' :{'$ne': None}})
data = {str(x['_id']): x['env'] for x in result} data = {str(x['_id']): x['env'] for x in result}
print(result) print(result)
with open('env.json', 'w', encoding='utf-8') as f: with open('env.json', 'w', encoding='utf-8') as f:
......
No preview for this file type
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment