diff --git a/baseTemplate/views.py b/baseTemplate/views.py index 45fc3aa49..e88e85bae 100755 --- a/baseTemplate/views.py +++ b/baseTemplate/views.py @@ -38,7 +38,7 @@ def versionManagement(request): currentBuild = str(BUILD) u = "https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v%s.%s" % (latestVersion, latestBuild) - logging.CyberCPLogFileWriter.writeToFile(u) + logging.writeToFile(u) r = requests.get(u) latestcomit = r.json()[0]['sha'] @@ -51,6 +51,7 @@ def versionManagement(request): if Currentcomt == latestcomit: notechk = False + template = 'baseTemplate/versionManagment.html' finalData = {'build': currentBuild, 'currentVersion': currentVersion, 'latestVersion': latestVersion, 'latestBuild': latestBuild, 'latestcomit': latestcomit, "Currentcomt": Currentcomt, "Notecheck": notechk}