m8chaa commited on
Commit
97b3a69
·
verified ·
1 Parent(s): 4efcbac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -988,8 +988,7 @@ async def startup_event():
988
  app.state.drive_watcher = DriveWatcher()
989
 
990
  # Fetch all users and initialize the watch list
991
- users_ref = firestore_client.collection('users')
992
- users = users_ref.get()
993
  for user in users:
994
  user_data = user.to_dict()
995
  if 'gDrive_metadata' in user_data and 'uploaded' in user_data['gDrive_metadata']:
 
988
  app.state.drive_watcher = DriveWatcher()
989
 
990
  # Fetch all users and initialize the watch list
991
+ users = users_collection_ref.get()
 
992
  for user in users:
993
  user_data = user.to_dict()
994
  if 'gDrive_metadata' in user_data and 'uploaded' in user_data['gDrive_metadata']: