From 6f0a511e00a32625b634a5982331cbf30cae21e2 Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Mon, 22 Jan 2024 19:17:14 -0500 Subject: [PATCH] Fixed downloading projects --- docs/changelog.md | 6 ++++++ pephub/_version.py | 2 +- requirements/requirements-all.txt | 2 +- web/src/utils/project.ts | 4 +++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index afba15b5..c30c30c5 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format. +## [0.11.4] - 01-22-2024 + +### Fixed +- Downloading zip files + + ## [0.11.2] - 01-17-2024 ### Added diff --git a/pephub/_version.py b/pephub/_version.py index 1bebb74e..350cbe9d 100644 --- a/pephub/_version.py +++ b/pephub/_version.py @@ -1 +1 @@ -__version__ = "0.11.3" +__version__ = "0.11.4" diff --git a/requirements/requirements-all.txt b/requirements/requirements-all.txt index 2b6275b1..86b1c7d0 100644 --- a/requirements/requirements-all.txt +++ b/requirements/requirements-all.txt @@ -1,6 +1,6 @@ fastapi>=0.108.0 psycopg>=3.1.15 -pepdbagent>=0.7.0 +pepdbagent>=0.7.1 peppy>=0.40.1 eido>=0.2.2 jinja2>=3.1.2 diff --git a/web/src/utils/project.ts b/web/src/utils/project.ts index 78727e51..3dbc805e 100644 --- a/web/src/utils/project.ts +++ b/web/src/utils/project.ts @@ -1,6 +1,8 @@ +const API_HOST = import.meta.env.VITE_API_HOST || ''; + export const downloadZip = (namespace: string, project: string, tag: string, jwt: string | undefined | null) => { const completeName = `${namespace}-${project}-${tag}`; - fetch(`/api/v1/projects/${namespace}/${project}/zip?tag=${tag}`, { + fetch(`${API_HOST}/api/v1/projects/${namespace}/${project}/zip?tag=${tag}`, { method: 'GET', headers: { 'Content-Type': 'application/json',