mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
Bug fix to Remote Backups
This commit is contained in:
@@ -74,17 +74,15 @@ def deleteBackup(request):
|
||||
|
||||
def submitRestore(request):
|
||||
try:
|
||||
userID = request.session['userID']
|
||||
wm = BackupManager()
|
||||
return wm.submitRestore(userID, json.loads(request.body))
|
||||
return wm.submitRestore(json.loads(request.body))
|
||||
except KeyError:
|
||||
return redirect(loadLoginPage)
|
||||
|
||||
def restoreStatus(request):
|
||||
try:
|
||||
userID = request.session['userID']
|
||||
wm = BackupManager()
|
||||
return wm.restoreStatus(userID, json.loads(request.body))
|
||||
return wm.restoreStatus(json.loads(request.body))
|
||||
except KeyError:
|
||||
return redirect(loadLoginPage)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user