Skip to content

Commit

Permalink
Repo._iter_events() iterdir fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sygao committed May 29, 2024
1 parent 9235093 commit bccbff1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion virtool_cli/ref/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def src_path(self) -> Path:
return self.path / "src"

def _iter_events(self, reverse: bool = False):
for path in sorted(self.src_path.iterdir(), reverse=reverse):
for path in sorted(self.src_path.glob("*.json"), reverse=reverse):
if path.stem == "meta":
continue
yield _read_event_at_path(path)

def _get_source_event_ids(self) -> list:
Expand Down

0 comments on commit bccbff1

Please sign in to comment.