feat(main): ready for final touches

This commit is contained in:
darkicewolf50 2024-12-14 16:46:41 -07:00
parent f03bb3d0d2
commit b23d807d8d
8 changed files with 7 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import os
year_donation = int(str(datetime.datetime.now().year)[2:]) + 1 # gets the last two digits of the current year then adds 1 for the current season
# name based off the 2025 naming system
# Define the path to the Excel file and the lock file
file_name = f"./Interviews/OR{year_donation}-L-Interview Data.xlsx"
file_name = f"/Interviews/OR{year_donation}-L-Interview Data.xlsx"
if not os.path.isfile(file_name):
os.makedirs(os.path.dirname(file_name), exist_ok=True)
NoSheet(file_name)

View File

@ -1,4 +1,5 @@
fastapi[standard]
pandas
openpyxl
PyYAML
PyYAML
filelock

View File

@ -20,7 +20,7 @@ def send_email(interviewee_email="darkicewolf50@gmail.com", interviewee_name="br
``Contact``: ahmad.ahmad1@ucalgary.ca
"""
# Define static email for notifications and Gmail credentials
static_email = "uofcbaja.noreply@gmail.com"
static_email = "uofcbaja@gmail.com"
gmail_user = "uofcbaja.noreply@gmail.com"
gmail_apppassword = "pver lpnt upjd zvld"

View File

@ -11,8 +11,9 @@ COPY ./ContainerContents /BajaCloudBackend
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 8080 for the container to listen on
EXPOSE 8080
EXPOSE 8000
# Command to run the Python server when the container starts
#CMD ["fastapi", "run" "main.py"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--reload"]

BIN
bajacloud.tar.gz Normal file

Binary file not shown.

View File

@ -2,7 +2,7 @@ services:
bajacloud:
container_name: bajacloud
ports:
- 8080:8080
- 8080:8000
volumes:
- ./mock:/Interviews
build: .

Binary file not shown.

View File