Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -838,8 +838,9 @@ class DriveWatcher:
|
|
| 838 |
'id': f'channel-{folder_id}-{int(time.time())}',
|
| 839 |
'type': 'web_hook',
|
| 840 |
'address': 'https://m8chaa-re-sheet-develop.hf.space/notifications',
|
| 841 |
-
# 'expiration': int((datetime.now() + timedelta(days=7)).timestamp() * 1000) # Set expiration to 7 days
|
| 842 |
}
|
|
|
|
|
|
|
| 843 |
response = app.state.drive_service.files().watch(fileId=folder_id, body=body).execute()
|
| 844 |
logging.info(f"Created channel for folder {folder_id}: {response['id']}")
|
| 845 |
return response
|
|
|
|
| 838 |
'id': f'channel-{folder_id}-{int(time.time())}',
|
| 839 |
'type': 'web_hook',
|
| 840 |
'address': 'https://m8chaa-re-sheet-develop.hf.space/notifications',
|
|
|
|
| 841 |
}
|
| 842 |
+
# 'expiration': int((datetime.now() + timedelta(days=7)).timestamp() * 1000) # Set expiration to 7 days
|
| 843 |
+
logging.info(body)
|
| 844 |
response = app.state.drive_service.files().watch(fileId=folder_id, body=body).execute()
|
| 845 |
logging.info(f"Created channel for folder {folder_id}: {response['id']}")
|
| 846 |
return response
|