Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -99,18 +99,6 @@ class CalendarService:
|
|
99 |
|
100 |
def generate_wrapped(self, entity_id: str) -> APIResponse:
|
101 |
try:
|
102 |
-
if entity_id not in self.connections:
|
103 |
-
return APIResponse(
|
104 |
-
success=False,
|
105 |
-
error="Please authenticate first by initiating a connection."
|
106 |
-
)
|
107 |
-
|
108 |
-
if self.connections[entity_id]['status'] != ConnectionStatus.ACTIVE.value:
|
109 |
-
return APIResponse(
|
110 |
-
success=False,
|
111 |
-
error="Connection not active. Please complete the authentication process."
|
112 |
-
)
|
113 |
-
|
114 |
tools = self.toolset.get_tools([
|
115 |
Action.GOOGLECALENDAR_GET_CALENDAR,
|
116 |
Action.GOOGLECALENDAR_FIND_EVENT,
|
|
|
99 |
|
100 |
def generate_wrapped(self, entity_id: str) -> APIResponse:
|
101 |
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
tools = self.toolset.get_tools([
|
103 |
Action.GOOGLECALENDAR_GET_CALENDAR,
|
104 |
Action.GOOGLECALENDAR_FIND_EVENT,
|