Vishweswar53 commited on
Commit
a1316e3
1 Parent(s): a01f0a1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -1,7 +1,7 @@
1
  import pymongo
2
 
3
  # Provide the mongodb localhost url to connect python to mongodb.
4
- client = pymongo.MongoClient("mongodb://localhost:27020/neurolabDB")
5
 
6
  # Database Name
7
  dataBase = client["neurolabDB"]
@@ -22,4 +22,4 @@ all_record = collection.find()
22
 
23
  # Printing all records present in the collection
24
  for idx, record in enumerate(all_record):
25
- print(f"{idx}: {record}")
 
1
  import pymongo
2
 
3
  # Provide the mongodb localhost url to connect python to mongodb.
4
+ client = pymongo.MongoClient("mongodb://localhost:27017/neurolabDB")
5
 
6
  # Database Name
7
  dataBase = client["neurolabDB"]
 
22
 
23
  # Printing all records present in the collection
24
  for idx, record in enumerate(all_record):
25
+ print(f"{idx}: {record}")