diff options
author | Peter Amstutz | 2020-07-08 10:28:28 -0400 |
---|---|---|
committer | Peter Amstutz | 2020-07-08 15:18:00 -0400 |
commit | 44e3c21ba89aa19c066148fdd18745f45e168d50 (patch) | |
tree | 697235a259582a2b7a22390ba5fb3374e7c9656e | |
parent | 99af299197dfc527155cd3257388b784810518c4 (diff) | |
download | bh20-seq-resource-44e3c21ba89aa19c066148fdd18745f45e168d50.tar.gz bh20-seq-resource-44e3c21ba89aa19c066148fdd18745f45e168d50.tar.lz bh20-seq-resource-44e3c21ba89aa19c066148fdd18745f45e168d50.zip |
Fetch status as anonymous user
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
-rw-r--r-- | bh20simplewebuploader/main.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index 1c96d36..d602288 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -17,6 +17,10 @@ import io import arvados from markupsafe import Markup +ARVADOS_API = 'lugli.arvadosapi.com' +ANONYMOUS_TOKEN = '5o42qdxpxp5cj15jqjf7vnxx5xduhm4ret703suuoa3ivfglfh' +UPLOADER_PROJECT = 'lugli-j7d0g-n5clictpuvwk8aa' + logging.basicConfig(level=logging.DEBUG) log = logging.getLogger(__name__ ) log.debug("Entering web uploader") @@ -459,9 +463,8 @@ def status_page(): Processing status """ - api = arvados.api() - uploader_project = 'lugli-j7d0g-n5clictpuvwk8aa' - pending = arvados.util.list_all(api.collections().list, filters=[["owner_uuid", "=", uploader_project]]) + api = arvados.api(host=ARVADOS_API, token=ANONYMOUS_TOKEN) + pending = arvados.util.list_all(api.collections().list, filters=[["owner_uuid", "=", UPLOADER_PROJECT]]) out = [] status = {} for p in pending: |