Skip to content

Commit

Permalink
Fix issue with version loading in prod and bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Aug 2, 2018
1 parent 4b91f2e commit c29fbd8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

## Version 0.3.0 (UNRELEASED)
## Version 0.3.1 (2018-08-02)

### Server and API

* Fix issue with loading version number in production.

## Version 0.3.0 (2018-08-02)

### Front End

Expand Down
7 changes: 4 additions & 3 deletions application.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
from typing import Pattern


__version__ = json.load(open("web/package.json", "r"))["version"]
BASE_DIR = os.path.dirname(__file__)

# Version for Metadata Endpoint
__version__ = json.load(open(os.path.join(BASE_DIR, "web/package.json"), "r"))["version"]

# Database Setup

BASE_DIR = os.path.dirname(__file__)
# Database Setup
DATABASE_PATH = os.path.join(BASE_DIR, "db.sqlite")


Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crispr-cut-browser-web",
"version": "0.3.0",
"version": "0.3.1",
"description": "A TSV browser for SNP data.",
"main": "src/index.js",
"scripts": {
Expand Down

0 comments on commit c29fbd8

Please sign in to comment.