diff --git a/Sharely/share_file.py b/Sharely/share_file.py index 5919eed..db10270 100644 --- a/Sharely/share_file.py +++ b/Sharely/share_file.py @@ -79,6 +79,7 @@ def callback(request_id, response, exception): batch.add(service.permissions().create(fileId=file_id, emailMessage=email_message, body=user_permission, + expirationTime=f"{expire_date_utc8.strftime('%Y-%m-%d')}T23:59:59+08:00:00", fields='id',)) batch.execute()