from datetime import time
from flask import Flask, jsonify, request, session, redirect
from app import db
from pprint import pprint
import pymongo

# class for Professor which contains all the models needed in the routes section
class Professor:

    def new_professor(self, user):
        professor = {
            "_id": user["_id"],
            "firstName": user['firstName'],
            "lastName": user['lastName'],
        }
        db.professors.insert_one(professor)