From bbb3593b564856054dfb826476c4ac8337648d5c Mon Sep 17 00:00:00 2001 From: David Berdik Date: Mon, 1 Jul 2019 19:21:17 -0400 Subject: [PATCH] Removed unused variable from driveAPI --- driveAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driveAPI.py b/driveAPI.py index 8cc9ce6..8a71dbc 100644 --- a/driveAPI.py +++ b/driveAPI.py @@ -87,7 +87,7 @@ def store_doc(service, folderId, file_name, file_path): 'parents': [folderId] } media = MediaIoBaseUpload(file_path, mimetype='application/vnd.openxmlformats-officedocument.wordprocessingml.document') - file = service.files().create(body=file_metadata, + service.files().create(body=file_metadata, media_body=media, fields = 'id').execute()