Small fix for handling display versions (#1625)

* Small fix for handling display versions

Making a distinction between __version__ and the version we display in the info panel (displayr_version).
The hosted cellxgene can overwrite the display_version using a plugin.

Improve version handling in the customized assets
This commit is contained in:
bmccandless
2020-07-16 15:11:37 -07:00
committed by GitHub
parent ed23d5dd9d
commit f223d7504e
6 changed files with 8 additions and 15 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from server import __version__ as cellxgene_version
from server import display_version as cellxgene_display_version
from flatten_dict import flatten, unflatten
import os
from os.path import splitext, basename, isdir
@@ -213,7 +213,7 @@ class AppConfig(object):
# library_versions
library_versions = {}
library_versions.update(data_adaptor.get_library_versions())
library_versions["cellxgene"] = cellxgene_version
library_versions["cellxgene"] = cellxgene_display_version
# links
links = {"about-dataset": about}