diff --git a/Makefile b/Makefile index dc048e80..e2cd9c6f 100644 --- a/Makefile +++ b/Makefile @@ -109,7 +109,7 @@ build: docker/${DEPLOY_JAR} \ --rm ./docker/ .PHONY: build-latest -build-staging: docker/${DEPLOY_JAR} \ +build-latest: docker/${DEPLOY_JAR} \ $(call print-help,build,\ "Build the docker images from using the current git revision.") docker build -t ${NAME}:latest \ diff --git a/src/rest_api/db/sequence.clj b/src/rest_api/db/sequence.clj index 998b5220..85ed2fb6 100644 --- a/src/rest_api/db/sequence.clj +++ b/src/rest_api/db/sequence.clj @@ -8,14 +8,14 @@ [rest-api.db.sequencesql :as sequencesql])) (defn database-version [] - (first - (str/split - (second - (reverse - (str/split - (db/datomic-uri) - #"/"))) - #"\."))) + (subs + (second + (reverse + (str/split + (db/datomic-uri) + #"/"))) + 0 5)) + (def species-assemblies (->> "ASSEMBLIES.json"