Use a string for versions

This commit is contained in:
Will Hunt 2018-09-17 17:09:06 +01:00 committed by GitHub
parent 2b39494cd5
commit 9a1cceeca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ def run(hs):
stats["timestamp"] = now stats["timestamp"] = now
stats["uptime_seconds"] = uptime stats["uptime_seconds"] = uptime
version = sys.version_info version = sys.version_info
stats["python_version"] = (version.major) + (version.minor / 10) + (version.micro / 100) stats["python_version"] = "{}.{}.{}".format(version.major, version.minor, version.micro)
stats["total_users"] = yield hs.get_datastore().count_all_users() stats["total_users"] = yield hs.get_datastore().count_all_users()
total_nonbridged_users = yield hs.get_datastore().count_nonbridged_users() total_nonbridged_users = yield hs.get_datastore().count_nonbridged_users()