Skip to content

Commit

Permalink
Fix broken dataset download
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Apr 15, 2023
1 parent aa6dd15 commit 1e3e8ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synergy_dataset/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
WORK_MAPPING = ["doi", "title", "abstract"]

SYNERGY_VERSION = (
os.getenv("SYNERGY_VERSION") if os.getenv("SYNERGY_VERSION") else "v1.0rc0"
os.getenv("SYNERGY_VERSION") if os.getenv("SYNERGY_VERSION") else "1.0rc0"
)
SYNERGY_PATH = os.getenv("SYNERGY_PATH")
SYNERGY_ROOT = Path("~", ".synergy_dataset_source").expanduser()
Expand All @@ -39,7 +39,7 @@ def _get_download_url(version=None, source="github"):
version = SYNERGY_VERSION

if source == "github":
github_url = "https://github.com/asreview/systematic-review-datasets/archive/refs/tags/{}.zip" # noqa
github_url = "https://github.com/asreview/systematic-review-datasets/archive/refs/tags/v{}.zip" # noqa
return github_url.format(version)
else:
raise ValueError("Unknown source")
Expand Down

0 comments on commit 1e3e8ef

Please sign in to comment.