Skip to content

Commit 54c014f

Browse files
Merge pull request #474 from CodeForPhilly/fix_version_link
Fix version link
2 parents b6bb097 + 08b6d33 commit 54c014f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Setup file for chime
22
"""
3-
__version__ = "1.1.2"
3+
__version__ = "1.1.2" # update VERSION in constants.py
44
__author__ = "Predictive Healthcare @ Penn Medicine"
55

66
from os import path
@@ -30,7 +30,7 @@
3030
"dash",
3131
"dash_bootstrap_components",
3232
"pyyaml",
33-
"gunicorn",
33+
"gunicorn",
3434
"selenium"
3535
],
3636
classifiers=[

src/penn_chime/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
re-run their reports
99
"""
1010
CHANGE_DATE = date(year=2020, month=4, day=1)
11+
VERSION = 'v1.1.2'
1112

1213
DATE_FORMAT = "%b, %d" # see https://strftime.org
1314
DOCS_URL = "https://code-for-philly.gitbook.io/chime"

src/penn_chime/presentation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
EPSILON,
1515
FLOAT_INPUT_MIN,
1616
FLOAT_INPUT_STEP,
17+
VERSION,
1718
)
1819

1920
from .utils import dataframe_to_base64
@@ -282,8 +283,9 @@ def display_sidebar(st, d: Parameters) -> Parameters:
282283

283284
# Build in desired order
284285
st.sidebar.markdown(
285-
"""**CHIME [v1.1.2](https://github.com/CodeForPhilly/chime/releases/tag/v1.1.1) ({change_date})**""".format(
286-
change_date=CHANGE_DATE
286+
"""**CHIME [{version}](https://github.com/CodeForPhilly/chime/releases/tag/{version}) ({change_date})**""".format(
287+
change_date=CHANGE_DATE,
288+
version=VERSION,
287289
)
288290
)
289291

0 commit comments

Comments
 (0)