-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting.py
More file actions
57 lines (43 loc) · 1.13 KB
/
testing.py
File metadata and controls
57 lines (43 loc) · 1.13 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#from bson import ObjectId
from databaseConnections import db_user
import datetime
"""
add = Address("13 Prabhupark Society", "Radhanpur Road", "Mehsana", "Gujarat", "384002")
emer = Emergency("Utkarsh", "Patel", "9586244772", "F")
user = create_user("Priyang", "something12@gmail.com", "2001-09-12", 'M', "9409481618", "888888888877", add, emer)
#user = create_doctor("Priyang", 'M', "9409481618", "123456789032", "111111")
print(user)
"""
"""
x = create_report("111111", "888888888888")
print(x)
#find_user_name("Priyang")
#update_user("123456789023", "9586244772")
"""
"""x = db_user.find()
for i in x:
print(i['Email'])
"""
"""
def find_user(u_id):
user = db_user.find_one({'_id': ObjectId(u_id)})
return user
user = find_user("5e503196440c8a31c881f25a")
print(user)
"""
user = db_user.find()
print(user)
user = db_user.find()
print(user)
for i in user:
print(i['Email'])
#
# users = db_user.find_one(
# {
# "$where": "function() {
# today = new Date();
# today.setHours(0,0,0,0);
# return (this._id.getTimestamp() >= today)
# } "
# }
# )