From 0afc49f5ba1717630ae2747da0331b529c1561c6 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sun, 29 Oct 2023 12:15:46 +0500 Subject: [PATCH] local --- baseTemplate/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}