Skip to content

Commit

Permalink
ignore all hidden folders
Browse files Browse the repository at this point in the history
(no concept starts with '.')
  • Loading branch information
FynnBe committed Jul 8, 2024
1 parent 0b2f496 commit 6bc6ff2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bioimageio_collection_backoffice/remote_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,12 @@ def get_concepts(self):
RecordConcept(client=self.client, concept_id=concept_id)
for d in self.client.ls("", only_folders=True)
if (concept_id := d.strip("/")) not in self.partner_ids
and not d.startswith(".")
] + [ # resources in partner folders
RecordConcept(client=self.client, concept_id=pid + "/" + d.strip("/"))
for pid in self.partner_ids
for d in self.client.ls(pid + "/", only_folders=True)
if not d.startswith(".")
]

def _select_parts(self, type_: str):
Expand Down Expand Up @@ -1134,7 +1136,11 @@ def create_collection_entries(
VersionInfo(
v=record_version.version,
created=record_version.info.created,
doi=None if isinstance(record_version, RecordDraft) else record_version.info.doi,
doi=(
None
if isinstance(record_version, RecordDraft)
else record_version.info.doi
),
)
)
compat_reports = record_version.get_all_compatibility_reports()
Expand Down

0 comments on commit 6bc6ff2

Please sign in to comment.