Skip to content

Commit

Permalink
Merge branch 'master' into features/async-calls-with-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Nov 26, 2024
2 parents b286367 + 45350d3 commit 44a4559
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions bento_beacon/utils/gohan_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ def zero_to_one(start, end=None):
return int(start) + 1 if end is None else (int(start) + 1, end)


def one_to_zero(start, end):
return (int(start) - 1, end)


# -------------------------------------------------------
# gohan calls
# -------------------------------------------------------
Expand Down Expand Up @@ -125,8 +121,7 @@ async def sequence_query_to_gohan(beacon_args, granularity, ids_only):
async def range_query_to_gohan(beacon_args, granularity, ids_only):
current_app.logger.debug("RANGE QUERY")
gohan_args = beacon_to_gohan_generic_mapping(beacon_args)
gohan_args["lowerBound"] = zero_to_one(beacon_args["start"][0])
gohan_args["upperBound"] = zero_to_one(beacon_args["end"][0])
gohan_args["lowerBound"], gohan_args["upperBound"] = zero_to_one(beacon_args["start"][0], beacon_args["end"][0])
gohan_args["getSampleIdsOnly"] = ids_only
return await generic_gohan_query(gohan_args, granularity, ids_only)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bento_beacon"
version = "0.17.0"
version = "0.0.0" # version is managed outside of Poetry for Beacon
description = "GA4GH Beacon v2 microservice for the Bento platform"
authors = ["Gordon Krieger <[email protected]>"]
license = "LGPL-3.0-only"
Expand Down

0 comments on commit 44a4559

Please sign in to comment.