-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremember.py
More file actions
35 lines (25 loc) · 934 Bytes
/
Copy pathremember.py
File metadata and controls
35 lines (25 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# export requirements.txt
exportCmd = 'pipreqs --force'
# handle list in .env
# 1. Seperate by ,
cmc_keys = 'a, b, c'
# // 2.1. use split and strip to access every
for key in cmc_keys.split(','):
print(key.strip())
# // 2.2 to list
cmc_keys = [i.strip() for i in cmc_keys.split(',')]
# // Get doc have a specific field
# havePricesDoc = metadataDocs.find({'prices' : { '$exists' : True}})
# => Change exists to False for query non exists field
# append token TXs
tokenDocs.update_one(
{'_id' : '0xcffad3200574698b78f32232aa9d63eabd290703'},
{
'$push':{
'TXs': {
'$each': [ {"blockNumber":"4730207","timeStamp":"1513240363",},{"blockNumber":"4764973","timeStamp":"1513764636",}]
}
}
}
)
symbolTest = metadataDocs.find_one({'contract_address.contract_address' : { '$eq' : contractAddressReq}})