mirror of
https://github.com/UofCBaja/BajaCloud.git
synced 2025-06-15 05:04:17 -06:00
fix(InterviewBooking): changed to absolute importing
This commit is contained in:
parent
d6f078b456
commit
153642b1f5
@ -1,7 +1,7 @@
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
import json
|
import json
|
||||||
from openpyxl import load_workbook
|
from openpyxl import load_workbook
|
||||||
from .send_email import send_email
|
from send_email import send_email
|
||||||
from filelock import FileLock
|
from filelock import FileLock
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from .ReadDB import ReadDatabase
|
from ReadDB import ReadDatabase
|
||||||
|
|
||||||
|
|
||||||
def getSchedulePackager(file_name):
|
def getSchedulePackager(file_name):
|
||||||
@ -18,7 +18,7 @@ def getSchedulePackager(file_name):
|
|||||||
"interviewDates": ReadDatabase(file_path=file_name)
|
"interviewDates": ReadDatabase(file_path=file_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
from .WriteDB import AppendAppointment
|
from WriteDB import AppendAppointment
|
||||||
from email_validator import validate_email, EmailNotValidError
|
from email_validator import validate_email, EmailNotValidError
|
||||||
|
|
||||||
|
|
||||||
|
6
main.py
6
main.py
@ -2,7 +2,7 @@ from fastapi import FastAPI
|
|||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from .InterviewBooking.NoSheet import NoSheet
|
from InterviewBooking.NoSheet import NoSheet
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ def get_root():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
from .InterviewBooking.interviewPackagers import getSchedulePackager
|
from InterviewBooking.interviewPackagers import getSchedulePackager
|
||||||
|
|
||||||
@app.get("/getAppointments")
|
@app.get("/getAppointments")
|
||||||
async def getAppointments():
|
async def getAppointments():
|
||||||
@ -76,7 +76,7 @@ async def getAppointments():
|
|||||||
# status_code=200 commented out just to show how to change it if you wanted
|
# status_code=200 commented out just to show how to change it if you wanted
|
||||||
)
|
)
|
||||||
|
|
||||||
from .InterviewBooking.interviewPackagers import SelectAppointment
|
from InterviewBooking.interviewPackagers import SelectAppointment
|
||||||
|
|
||||||
class Appointment(BaseModel):
|
class Appointment(BaseModel):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user