From 58b890c28e36db3b325cf7a228fedafa69e89495 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Fri, 13 Nov 2020 16:00:25 +0500 Subject: [PATCH] update gdrive url --- backup/static/backup/backup.js | 2 +- plogical/IncScheduler.py | 4 ++-- static/backup/backup.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backup/static/backup/backup.js b/backup/static/backup/backup.js index 01f010797..9105a96c5 100755 --- a/backup/static/backup/backup.js +++ b/backup/static/backup/backup.js @@ -1073,7 +1073,7 @@ app.controller('googleDrive', function ($scope, $http) { $scope.driveHidden = true; $scope.setupAccount = function(){ - window.open("https://platform.cyberpanel.net/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup'); + window.open("https://cloud.cyberpanel.net/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup'); }; $scope.currentPage = 1; diff --git a/plogical/IncScheduler.py b/plogical/IncScheduler.py index 8085cebb0..0da947c46 100644 --- a/plogical/IncScheduler.py +++ b/plogical/IncScheduler.py @@ -227,7 +227,7 @@ class IncScheduler(): try: finalData = json.dumps({'refresh_token': gDriveData['refresh_token']}) - r = requests.post("https://platform.cyberpanel.net/refreshToken", data=finalData + r = requests.post("https://cloud.cyberpanel.net/refreshToken", data=finalData ) gDriveData['token'] = json.loads(r.text)['access_token'] @@ -309,7 +309,7 @@ class IncScheduler(): drive.files().create(body=file_metadata, media_body=media, fields='id').execute() except: finalData = json.dumps({'refresh_token': gDriveData['refresh_token']}) - r = requests.post("https://platform.cyberpanel.net/refreshToken", data=finalData + r = requests.post("https://cloud.cyberpanel.net/refreshToken", data=finalData ) gDriveData['token'] = json.loads(r.text)['access_token'] diff --git a/static/backup/backup.js b/static/backup/backup.js index 01f010797..9105a96c5 100644 --- a/static/backup/backup.js +++ b/static/backup/backup.js @@ -1073,7 +1073,7 @@ app.controller('googleDrive', function ($scope, $http) { $scope.driveHidden = true; $scope.setupAccount = function(){ - window.open("https://platform.cyberpanel.net/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup'); + window.open("https://cloud.cyberpanel.net/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup'); }; $scope.currentPage = 1;