Skip to content

Commit

Permalink
Removed stuff added for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
eXhumer committed Apr 15, 2020
1 parent 234106c commit 0879d32
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions TinGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,9 @@ def upload_file(self, file_path, dest_folder_id, new_upload_id):

if dest_folder_id is None:
if existing_file_id:
a = self.drive_service.files().update(fileId=existing_file_id, media_body=media)
response = self._apicall(a)
response = self._apicall(self.drive_service.files().update(fileId=existing_file_id, media_body=media))
else:
a = self.drive_service.files().create(media_body=media, body={"name": Path(file_path).name}, supportsAllDrives=True)
response = self._apicall(a)
response = self._apicall(self.drive_service.files().create(media_body=media, body={"name": Path(file_path).name}, supportsAllDrives=True))
else:
if existing_file_id:
response = self._apicall(self.drive_service.files().update(fileId=existing_file_id, media_body=media))
Expand Down

0 comments on commit 0879d32

Please sign in to comment.