Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,6 @@ class CalendarService:
|
|
100 |
self.connection_request = self.toolset.initiate_connection(
|
101 |
entity_id=entity_id,
|
102 |
app=App.GOOGLECALENDAR,
|
103 |
-
redirect_url=redirect_url
|
104 |
)
|
105 |
|
106 |
return {
|
@@ -123,8 +122,10 @@ class CalendarService:
|
|
123 |
'success': False,
|
124 |
'error': 'No active connection request found'
|
125 |
}
|
126 |
-
|
127 |
-
|
|
|
|
|
128 |
return {
|
129 |
'success': True,
|
130 |
'data': {
|
|
|
100 |
self.connection_request = self.toolset.initiate_connection(
|
101 |
entity_id=entity_id,
|
102 |
app=App.GOOGLECALENDAR,
|
|
|
103 |
)
|
104 |
|
105 |
return {
|
|
|
122 |
'success': False,
|
123 |
'error': 'No active connection request found'
|
124 |
}
|
125 |
+
entity_id = self.toolset.get_entity(entity_id=entity_id)
|
126 |
+
connection = entity_id.get_connection()
|
127 |
+
status = connection.connectionStatus
|
128 |
+
#status = self.connection_request.connectionStatus
|
129 |
return {
|
130 |
'success': True,
|
131 |
'data': {
|