Junaidb commited on
Commit
9ce0cf1
·
verified ·
1 Parent(s): 8eb789d

Create components/checkaccountexists.py

Browse files
Files changed (1) hide show
  1. components/checkaccountexists.py +14 -0
components/checkaccountexists.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from components.mongodbconnection import provideClient
2
+
3
+ mc=provideClient()
4
+
5
+ db=mc["x402ify_db"]
6
+ coll=db["x402ify_col"]
7
+
8
+
9
+ def checkAccount(owner):
10
+ document=coll.find_one({"owner":owner})
11
+ if document:
12
+ return True
13
+ else:
14
+ return False