mbosse99 commited on
Commit
32ddb83
1 Parent(s): 413f4ad

added db connection

Browse files
Files changed (3) hide show
  1. .gitignore +3 -0
  2. ParamClasses.py +2 -0
  3. app.py +3 -1
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ __pycache__/
2
+ .venv/
3
+ .env
ParamClasses.py CHANGED
@@ -37,6 +37,8 @@ class SendClientParams(BaseModel, extra="forbid"):
37
  # ------------------------------------------------------------------------------
38
  class AppointmentDBItem(BaseModel, extra="forbid"):
39
  id: str
 
 
40
  job_title: str
41
  start_time: str
42
  end_time: str
 
37
  # ------------------------------------------------------------------------------
38
  class AppointmentDBItem(BaseModel, extra="forbid"):
39
  id: str
40
+ zoom_meeting_id: str
41
+ process_id: str
42
  job_title: str
43
  start_time: str
44
  end_time: str
app.py CHANGED
@@ -138,6 +138,8 @@ if not st.session_state["appointment_response"]:
138
  st.write(appointment_response["zoom_meeting"]["start_url"])
139
  db_item = AppointmentDBItem(
140
  id=str(uuid.uuid4()),
 
 
141
  job_title=subject_input,
142
  start_time=start_date_str,
143
  end_time=end_date_str,
@@ -160,7 +162,7 @@ if not st.session_state["appointment_response"]:
160
  summary_client="",
161
  summary_candidate=""
162
  )
163
- # write_appointment_db_object(db_item)
164
  st.info("Once you have attended the meeting and it has ended, please wait about 10 minutes before requesting the meeting recording as it will take time to become available ", icon="ℹ️")
165
  st.session_state["appointment_response"] = appointment_response
166
  print(appointment_response["zoom_meeting"]["id"])
 
138
  st.write(appointment_response["zoom_meeting"]["start_url"])
139
  db_item = AppointmentDBItem(
140
  id=str(uuid.uuid4()),
141
+ zoom_meeting_id=str(appointment_response["zoom_meeting"]["id"]),
142
+ process_id=str(uuid.uuid4()),
143
  job_title=subject_input,
144
  start_time=start_date_str,
145
  end_time=end_date_str,
 
162
  summary_client="",
163
  summary_candidate=""
164
  )
165
+ write_appointment_db_object(db_item)
166
  st.info("Once you have attended the meeting and it has ended, please wait about 10 minutes before requesting the meeting recording as it will take time to become available ", icon="ℹ️")
167
  st.session_state["appointment_response"] = appointment_response
168
  print(appointment_response["zoom_meeting"]["id"])