diff --git a/catDB.py b/catDB.py index 33df663cfb209e281112bc4dbcb207e21aa7b3d7..2f137838ad8f8da11bc8e7afc7eb49885f94a9ed 100644 --- a/catDB.py +++ b/catDB.py @@ -1,7 +1,5 @@ # pymongo for MongoDB support import pymongo -# For timestamping in MongoDB -import datetime #pymongo connect DBConHost = 'localhost' @@ -13,12 +11,6 @@ DBCon = pymongo.MongoClient(DBConHost, DBConPort) DB = DBCon[DBName] DBTableStability = DB[DBTableName] -#post = { - ##"timestamp" : int(time.time()), -##Not needed since first 4bits of _id is timestamp - #"stability" : mos, - #"position" : False # Position appended here -#} - +# Print all posts in the mongoDB for post in DBTableStability.find(): print(post)