Bug fix to Remote Backups

This commit is contained in:
usmannasir
2018-09-05 19:06:06 +05:00
parent 7a9e358d5a
commit 2921125c06
1539 changed files with 360759 additions and 10 deletions

View File

@@ -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)