mirror of
https://github.com/UofCBaja/BajaCloud.git
synced 2025-07-06 02:57:12 -06:00
fix(master): found a bug and fixed datetime not match in cell
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user