feat(Actions): added auto linting to main and pull requests fixed some typos

This commit is contained in:
2024-12-21 14:23:46 -07:00
parent b23d807d8d
commit 078bc71bf9
5 changed files with 66 additions and 12 deletions

View File

@ -3,7 +3,6 @@ import json
from filelock import FileLock, Timeout
import time
from NoSheet import NoSheet
import datetime
"""
@ -47,7 +46,7 @@ def ReadDatabase(file_path):
# Group the DataFrame by Date, Start Time, and Slot for organization
for _, row in df.iterrows():
date = str(row['Date'])
date = str(row['Date']).split(" ")[0]
start_time = str(row['Start Time Slot'])
slot = int(row['Slot']) if not pd.isna(row['Slot']) else 0

View File

@ -35,15 +35,7 @@ def SelectAppointment (file_name, appointmentJson):
``Contact``: darkicewolf50@gmail.com
"""
"""
Example of an incoming http post body
{
"intervieweeName": "Brock",
"date": "9/16/2024",
"startTime": "11:00:00",
"intervieweeEmail": "darkicewolf50@gmail.com"
}
"""
try:
validEmail = validate_email(appointmentJson["intervieweeEmail"], check_deliverability=True)
if validEmail:
@ -58,5 +50,6 @@ def SelectAppointment (file_name, appointmentJson):
return resBody
except EmailNotValidError as e:
print(e)
return {"Success": False, "validEmail": "false"}