BroBro87 commited on
Commit
940e49e
·
verified ·
1 Parent(s): bb5b52d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- status = self.connection_request.connectionStatus
 
 
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': {