diff options
Diffstat (limited to 'subplot')
-rw-r--r-- | subplot/server.py | 4 | ||||
-rw-r--r-- | subplot/server.yaml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/subplot/server.py b/subplot/server.py index 2a3e397..de63836 100644 --- a/subplot/server.py +++ b/subplot/server.py @@ -69,8 +69,8 @@ def get_chunk_by_id(ctx, chunk_id=None): _request(ctx, requests.get, url) -def find_chunks_with_sha(ctx, sha=None): - url = f"{ctx['server_url']}/chunks?sha256={sha}" +def find_chunks_with_label(ctx, sha=None): + url = f"{ctx['server_url']}/chunks?label={sha}" _request(ctx, requests.get, url) diff --git a/subplot/server.yaml b/subplot/server.yaml index faf8f49..7b7d461 100644 --- a/subplot/server.yaml +++ b/subplot/server.yaml @@ -31,11 +31,11 @@ python: function: get_chunk_by_id -- when: "I GET /chunks?sha256={sha}" +- when: "I GET /chunks?label={sha}" regex: false impl: python: - function: find_chunks_with_sha + function: find_chunks_with_label - when: "I DELETE /chunks/<{var}>" impl: |