Skip to content

Commit

Permalink
a tag with standard name can now be added to runs, it is displayed in…
Browse files Browse the repository at this point in the history
… the filters.
  • Loading branch information
gitjannes committed Dec 12, 2024
1 parent 383b1ad commit 9f9b8db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protzilla/run_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_available_runinfo() -> tuple[list[dict[str, str | list[str]]], list[dict
return []
runs = []
runs_favourited = []
all_tags = {}
all_tags = set()
for directory in paths.RUNS_PATH.iterdir():
if directory.name.startswith("."):
continue
Expand Down
2 changes: 1 addition & 1 deletion ui/runs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def add_tag(request: HttpRequest):
tags = metadata.get("tags")
tags.append(run_tag)
metadata["tags"]= tags
yaml_operator.write(metadata_yaml_path, metadata)
yaml_operator.write(Path(metadata_yaml_path), metadata)

return HttpResponseRedirect(reverse("runs:index"))

Expand Down

0 comments on commit 9f9b8db

Please sign in to comment.