fix(master): found a bug and fixed datetime not match in cell

This commit is contained in:
2025-02-22 16:57:48 -07:00
parent 595c5143ab
commit 6917a390cf
4 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,6 @@
import pandas as pd
import json
import datetime
from openpyxl import load_workbook
from .send_email import send_email
from filelock import FileLock
@ -33,7 +34,8 @@ def ReadDatabase(file_path, lock_path):
# Process each row in the DataFrame to structure data by date and time
for _, row in df.iterrows():
# Convert Date and Start Time to string format for easier comparison
date = str(row['Date']).split(" ")[0] # Format date to YYYY-MM-DD
date = str(row['Date']).split(" ")[0] # Extract the date part
start_time = str(row['Start Time Slot'])
# Calculate the slot capacity and current number of interviewees