mirror of
https://github.com/UofCBaja/BajaCloud.git
synced 2025-07-07 19:47:14 -06:00
feat(Actions): added auto linting to main and pull requests fixed some typos
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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"}
|
||||
|
||||
|
Reference in New Issue
Block a user