Skip to content

Commit

Permalink
Archive: allow list_parameter_values with alias
Browse files Browse the repository at this point in the history
  • Loading branch information
fqqb committed Nov 8, 2023
1 parent 64ebdb1 commit fdf3a66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yamcs-client/src/yamcs/archive/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import functools
import urllib.parse
from datetime import datetime, timedelta, timezone
from typing import Callable, Iterable, List, Optional, Union

Expand Down Expand Up @@ -861,9 +862,10 @@ def list_parameter_values(
else:
params["norealtime"] = True

encoded_name = urllib.parse.quote_plus(parameter)
return pagination.Iterator(
ctx=self.ctx,
path=f"/archive/{self._instance}/parameters{parameter}",
path=f"/archive/{self._instance}/parameters/{encoded_name}",
params=params,
response_class=archive_pb2.ListParameterHistoryResponse,
items_key="parameter",
Expand Down

0 comments on commit fdf3a66

Please sign in to comment.