add update_available keys to version()

as to not require making the version string comparison in whatever is
making the daemon call
This commit is contained in:
Jack 2016-07-06 01:46:49 -04:00
parent 8b1d75ea98
commit 1984132eae

View file

@ -1487,7 +1487,9 @@ class LBRYDaemon(jsonrpc.JSONRPC):
'lbryum_version': lbryum_version,
'ui_version': self.ui_version,
'remote_lbrynet': self.git_lbrynet_version,
'remote_lbryum': self.git_lbryum_version
'remote_lbryum': self.git_lbryum_version,
'lbrynet_update_available': lbrynet_version < self.git_lbrynet_version,
'lbryum_update_available': lbryum_version < self.git_lbryum_version
}
log.info("[" + str(datetime.now()) + "] Get version info: " + json.dumps(msg))