Get rid of using old-style revision everywhere
This commit is contained in:
parent
1a8c6aaa93
commit
15dddc27c6
8 changed files with 13 additions and 16 deletions
|
@ -660,7 +660,7 @@ class UiRequest:
|
|||
permissions=json.dumps(site.settings["permissions"]),
|
||||
show_loadingscreen=json.dumps(show_loadingscreen),
|
||||
sandbox_permissions=sandbox_permissions,
|
||||
rev=config.rev,
|
||||
rev=config.commit,
|
||||
lang=config.language,
|
||||
homepage=homepage,
|
||||
themeclass=themeclass,
|
||||
|
@ -1038,7 +1038,7 @@ class UiRequest:
|
|||
|
||||
if details and config.debug:
|
||||
details = {key: val for key, val in list(self.env.items()) if hasattr(val, "endswith") and "COOKIE" not in key}
|
||||
details["version_zeronet"] = "%s r%s" % (config.version, config.rev)
|
||||
details["version_zeronet"] = config.version_full
|
||||
details["version_python"] = sys.version
|
||||
details["version_gevent"] = gevent.__version__
|
||||
details["plugins"] = PluginManager.plugin_manager.plugin_names
|
||||
|
|
|
@ -328,13 +328,15 @@ class UiWebsocket(object):
|
|||
'ui_ip' : config.ui_ip,
|
||||
'ui_port' : config.ui_port,
|
||||
'version' : config.version,
|
||||
'rev' : config.rev,
|
||||
# The only place this is used is in dashboard so we shorten it for now
|
||||
'rev' : config.commit[:8],
|
||||
'timecorrection' : file_server.timecorrection,
|
||||
'language' : config.language,
|
||||
'debug' : config.debug,
|
||||
'offline' : config.offline,
|
||||
'plugins' : PluginManager.plugin_manager.plugin_names,
|
||||
'plugins_rev' : PluginManager.plugin_manager.plugins_rev,
|
||||
# For compat only
|
||||
'plugins_rev' : {},
|
||||
'user_settings' : self.user.settings,
|
||||
'lib_verify_best' : CryptBitcoin.lib_verify_best
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue