mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
minor fix to gdrive backups
This commit is contained in:
@@ -210,6 +210,9 @@ class IncScheduler():
|
||||
credentials = google.oauth2.credentials.Credentials(gDriveData['token'], gDriveData['refresh_token'],
|
||||
gDriveData['token_uri'], gDriveData['client_id'],
|
||||
gDriveData['client_secret'], gDriveData['scopes'])
|
||||
items.auth = json.dumps(credentials)
|
||||
items.save()
|
||||
|
||||
drive = build('drive', 'v3', credentials=credentials)
|
||||
except BaseException as msg:
|
||||
GDriveJobLogs(owner=items, status=backupSchedule.ERROR, message='Connection to this account failed. Delete and re-setup this account. Error: %s' % (str(msg))).save()
|
||||
|
||||
Reference in New Issue
Block a user