# Queries the database to get info on classes
# Michael Gallagher 12-20-18

from pymongo import MongoClient

con = MongoClient()
db = con.ClassRecords
col = db.Courses

start = input("What is the start of your free time? ")
end = input("When is the end? ")

x = col.find_one({"time": {'$regex': '/'+ start + '$/'}})
print(x)

8bfbe9d43447b1be0182f369071d1d76c47165b8
<mask token>

<mask token>
print(x)

<mask token>
con = MongoClient()
db = con.ClassRecords
col = db.Courses
start = input('What is the start of your free time? ')
end = input('When is the end? ')
x = col.find_one({'time': {'$regex': '/' + start + '$/'}})
print(x)

from pymongo import MongoClient
con = MongoClient()
db = con.ClassRecords
col = db.Courses
start = input('What is the start of your free time? ')
end = input('When is the end? ')
x = col.find_one({'time': {'$regex': '/' + start + '$/'}})
print(x)

# Queries the database to get info on classes
# Michael Gallagher 12-20-18

from pymongo import MongoClient

con = MongoClient()
db = con.ClassRecords
col = db.Courses

start = input("What is the start of your free time? ")
end = input("When is the end? ")

x = col.find_one({"time": {'$regex': '/'+ start + '$/'}})
print(x)
