Skip to content

Commit

Permalink
new read is working
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed May 6, 2024
1 parent 48939aa commit 93eaf62
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rose_vfs/virtualfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,13 +1160,17 @@ def readdir(self, p: VirtualPath) -> Iterator[tuple[str, dict[str, Any]]]:
tags=["label"],
pattern=MatcherPattern(f"^{p.label}$"),
)

if p.view == "New":
matcher = MetadataMatcher(
tags=["new"],
pattern=MatcherPattern("^true$"),
)
releases = (
find_releases_matching_rule(self.config, matcher)
if matcher
else list_releases(self.config)
)
# TODO: new=True if p.view == "New" else None,

yield ALL_TRACKS, self.stat("dir")
for rls, vname in self.vnames.list_release_paths(p, releases):
yield vname, self.stat("dir", rls.source_path)
Expand Down

0 comments on commit 93eaf62

Please sign in to comment.