From bbfb5a78539e7b99c30fa4a29dab5aae9547b9a8 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 19 Apr 2017 13:54:38 -0400 Subject: [PATCH] include schema version in version() response --- CHANGELOG.md | 2 +- lbrynet/core/system_info.py | 2 ++ lbrynet/lbrynet_daemon/Daemon.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f2b8cbe1..540413102 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ at anytime. ## [Unreleased] ### Added - * + * Add `lbryschema_version` to response from `version` * * diff --git a/lbrynet/core/system_info.py b/lbrynet/core/system_info.py index 87f2d1433..c5430c025 100644 --- a/lbrynet/core/system_info.py +++ b/lbrynet/core/system_info.py @@ -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 } diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index 111c60ea7..d858c95ba 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -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