Skip to content

Commit

Permalink
fix suffix for root level endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Dec 14, 2024
1 parent 1dcd202 commit d8772dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mp_api/client/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,9 @@ def _query_resource(

if query_s3:
db_version = self.db_version.replace(".", "-")
if self.suffix == "molecules/summary":
if "/" not in self.suffix:
suffix = self.suffix
elif self.suffix == "molecules/summary":
suffix = "molecules"
else:
infix, suffix = self.suffix.split("/", 1)
Expand Down

0 comments on commit d8772dc

Please sign in to comment.