File size: 263 Bytes
2186a46
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from components.mongodbconnection import provideClient

mc=provideClient()

db=mc["402launch_db"]
coll=db["402launch_col"]


def checkSolverAccount(owner):
    document=coll.find_one({"owner":owner})
    return bool(document and "solutions" in document)