Skip to content

Commit

Permalink
local
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Oct 29, 2023
1 parent b98f979 commit 0afc49f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion baseTemplate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand All @@ -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}
Expand Down

0 comments on commit 0afc49f

Please sign in to comment.