aboutsummaryrefslogtreecommitdiff
path: root/bh20seqanalyzer
diff options
context:
space:
mode:
authorPeter Amstutz2020-04-07 14:37:19 -0400
committerPeter Amstutz2020-04-07 14:37:19 -0400
commit4215a82af730ff05b8fe98e226b759413cdf95f7 (patch)
tree877febc74044797ced24191a382c45b429f427a2 /bh20seqanalyzer
parent102a3663123292375440eeb04276d22a5b4645e0 (diff)
downloadbh20-seq-resource-4215a82af730ff05b8fe98e226b759413cdf95f7.tar.gz
bh20-seq-resource-4215a82af730ff05b8fe98e226b759413cdf95f7.tar.lz
bh20-seq-resource-4215a82af730ff05b8fe98e226b759413cdf95f7.zip
limit 1
Diffstat (limited to 'bh20seqanalyzer')
-rw-r--r--bh20seqanalyzer/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bh20seqanalyzer/main.py b/bh20seqanalyzer/main.py
index 2db97f6..2513ea3 100644
--- a/bh20seqanalyzer/main.py
+++ b/bh20seqanalyzer/main.py
@@ -81,7 +81,7 @@ def start_analysis(api,
def copy_most_recent_result(api, analysis_project, latest_result_uuid):
most_recent_analysis = api.groups().list(filters=[['owner_uuid', '=', analysis_project]],
- order="created_at desc").execute()
+ order="created_at desc", limit=1).execute()
for m in most_recent_analysis["items"]:
cr = api.container_requests().list(filters=[['owner_uuid', '=', m["uuid"]],
["requesting_container_uuid", "=", None]]).execute()