From 0f3c6a1055552eb1da837e74c3413db9ca91b23f Mon Sep 17 00:00:00 2001 From: Adam Wright Date: Wed, 15 Jul 2020 04:08:01 +0000 Subject: [PATCH] fixing bug with make command --- Makefile | 2 +- src/rest_api/db/sequence.clj | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) 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"