From abc26d197868342c0ae1df4848d8f7b391d658f4 Mon Sep 17 00:00:00 2001 From: Patrick Wang <1263870+patrickkwang@users.noreply.github.com> Date: Wed, 20 Oct 2021 12:28:30 -0400 Subject: [PATCH] Add `submitter` to KP requests (#308) * Add `submitter` to KP requests * Bump version Co-authored-by: Patrick Wang Co-authored-by: Max Wang --- strider/server.py | 2 +- strider/trapi_throttle/throttle.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/strider/server.py b/strider/server.py index 7b515b01..190d1731 100644 --- a/strider/server.py +++ b/strider/server.py @@ -42,7 +42,7 @@ title="Strider", description=DESCRIPTION, docs_url=None, - version="3.13.1", + version="3.13.2", terms_of_service=( "http://robokop.renci.org:7055/tos" "?service_long=Strider" diff --git a/strider/trapi_throttle/throttle.py b/strider/trapi_throttle/throttle.py index 5c3d7e04..0a59c3a9 100644 --- a/strider/trapi_throttle/throttle.py +++ b/strider/trapi_throttle/throttle.py @@ -195,6 +195,7 @@ async def process_batch( )) self.logger.context = self.id merged_request_value = await self.preproc(merged_request_value, self.logger) + merged_request_value["submitter"] = "infores:aragorn" async with httpx.AsyncClient() as client: response = await client.post( self.url,