Skip to content

Commit

Permalink
speed up available()
Browse files Browse the repository at this point in the history
  • Loading branch information
frankenjoe committed Sep 18, 2023
1 parent b803cc9 commit 0e145ba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions audb/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ def available(
# see https://github.com/audeering/audbackend/issues/132
for p in backend._repo.path:
name = p.name
for x in backend.ls(
f'/{name}/{define.HEADER_FILE}',
suppress_backend_errors=True,
):
version = x[1]
for version in [str(x).split('/')[-1] for x in p / 'db']:
databases.append(
[
name,
Expand Down

0 comments on commit 0e145ba

Please sign in to comment.