Junaidb's picture
Upload 35 files
2186a46 verified
raw
history blame contribute delete
263 Bytes
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)