include schema version in version() response

This commit is contained in:
Jack Robison 2017-04-19 13:54:38 -04:00
parent 8ce4039093
commit bbfb5a7853
3 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,7 @@ at anytime.
## [Unreleased]
### Added
*
* Add `lbryschema_version` to response from `version`
*
*

View file

@ -6,6 +6,7 @@ from urllib2 import urlopen
from lbrynet import __version__ as lbrynet_version
from lbrynet import build_type
from lbryum.version import LBRYUM_VERSION as lbryum_version
from lbryschema import __version__ as lbryschema_version
def get_platform(get_ip=True):
@ -17,6 +18,7 @@ def get_platform(get_ip=True):
"os_system": platform.system(),
"lbrynet_version": lbrynet_version,
"lbryum_version": lbryum_version,
"lbryschema_version": lbryschema_version,
"build": build_type.BUILD, # CI server sets this during build step
}

View file

@ -1187,6 +1187,7 @@ class Daemon(AuthJSONRPCServer):
'lbrynet_update_available': (bool) whether there's an update available,
'lbrynet_version': (str) lbrynet_version,
'lbryum_version': (str) lbryum_version,
'lbryschema_version': (str) lbryschema_version,
'os_release': (str) os release string
'os_system': (str) os name
'platform': (str) platform string