Skip to content

Commit f434098

Browse files
committed
Fix get_runs filters
1 parent 3d33c93 commit f434098

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

simvue/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ def get_runs(
234234
RuntimeError
235235
if there was a failure in data retrieval from the server
236236
"""
237+
filters = filters or []
237238
if not show_shared:
238-
filters = (filters or []) + ["user == self"]
239+
filters += ["user == self"]
239240

240241
_runs = Run.get(
241242
count=count_limit,

tests/functional/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def test_get_artifacts_as_files(
227227
def test_get_runs(create_test_run: tuple[sv_run.Run, dict], output_format: str, sorting: list[tuple[str, bool]] | None) -> None:
228228
client = svc.Client()
229229

230-
_result = client.get_runs(filters=None, output_format=output_format, count_limit=10, sort_by_columns=sorting)
230+
_result = client.get_runs(filters=[], output_format=output_format, count_limit=10, sort_by_columns=sorting)
231231

232232
if output_format == "dataframe":
233233
assert not _result.empty

0 commit comments

Comments
 (0)