Skip to content

Commit 75ad8ef

Browse files
committed
VERSION var for contribs-api app config
1 parent 400d24b commit 75ad8ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mpcontribs-api/mpcontribs/api/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
with gzip.open(formulae_path) as f:
1515
FORMULAE = json.load(f)
1616

17+
VERSION = __version__
18+
1719
JSON_ADD_STATUS = False
1820
SECRET_KEY = "super-secret" # TODO in local prod config
1921

@@ -58,7 +60,7 @@
5860
"title": "MPContribs API",
5961
"description": "Operations to contribute, update and retrieve materials data on Materials Project",
6062
"termsOfService": "https://materialsproject.org/terms",
61-
"version": __version__,
63+
"version": VERSION,
6264
"contact": {
6365
"name": "MPContribs",
6466
"email": "contribs@materialsproject.org",

0 commit comments

Comments
 (0)