remove file after sending to gdrive

This commit is contained in:
Usman Nasir
2020-06-14 13:09:57 +05:00
parent 17a4f81356
commit 018891dabe

View File

@@ -249,7 +249,9 @@ class IncScheduler():
drive.files().create(body=file_metadata, media_body=media, fields='id').execute()
GDriveJobLogs(owner=items, status=backupSchedule.INFO,
message='Backup for %s successfully sent to Googe Drive.' % (website.domain)).save()
message='Backup for %s successfully sent to Google Drive.' % (website.domain)).save()
os.remove(completeFileToSend)
except BaseException as msg:
GDriveJobLogs(owner=items, status=backupSchedule.ERROR,