gitPull and git push

This commit is contained in:
Usman Nasir
2020-03-10 21:04:57 +05:00
parent d8a2a6c4c0
commit 4a822659e8
6 changed files with 763 additions and 6 deletions

View File

@@ -771,5 +771,21 @@ def commitChanges(request):
userID = request.session['userID']
wm = WebsiteManager()
return wm.commitChanges(userID, json.loads(request.body))
except KeyError:
return redirect(loadLoginPage)
def gitPull(request):
try:
userID = request.session['userID']
wm = WebsiteManager()
return wm.gitPull(userID, json.loads(request.body))
except KeyError:
return redirect(loadLoginPage)
def gitPush(request):
try:
userID = request.session['userID']
wm = WebsiteManager()
return wm.gitPush(userID, json.loads(request.body))
except KeyError:
return redirect(loadLoginPage)