Also use pre-calculated revision information instead of fetching anew
This commit is contained in:
1 parent
e8bd29ef99
commit
7fcd04ae61
2 files changed
+4
-5
No files matched your search
@@ -18,7 +18,7 @@ from . import version_checks, updaters, exceptions, util
|
||||
|
||||
|
||||
from octoprint.server.util.flask import restricted_access
|
||||
from octoprint.server import admin_permission, VERSION
|
||||
from octoprint.server import admin_permission, VERSION, REVISION
|
||||
from octoprint.util import dict_merge
|
||||
import octoprint.settings
|
||||
|
||||
@@ -688,9 +688,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
result["displayVersion"] = check.get("displayVersion", "{octoprint_version}")
|
||||
|
||||
if check["type"] == "github_commit":
|
||||
from octoprint._version import get_versions
|
||||
versions = get_versions()
|
||||
result["current"] = versions.get("full-revisionid", versions.get("full", "unknown"))
|
||||
result["current"] = REVISION if REVISION else "unknown"
|
||||
else:
|
||||
result["current"] = VERSION
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user