Skip to content

Commit

Permalink
Merge pull request #150 from YYYasin19/fix-dot-name
Browse files Browse the repository at this point in the history
fix: don't filter out packages with dot in name
  • Loading branch information
hbcarlos authored Jul 31, 2023
2 parents 36e16e5 + 0e17bcf commit abb1412
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dependencies:
- quetz
- nodejs=16
- yarn=1.22
- pydantic<2
4 changes: 3 additions & 1 deletion quetz_frontend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ def index(
user_id = auth.get_user()
profile = dao.get_profile(user_id)

if "." in resource:
# request might also be /channels/<channel_name>/packages/<package.name>
# where the package name contains a "."
if "." in resource and not ('channels/' in resource and 'packages/' in resource):
file_name = (
resource
if ("icons" in resource or "logos" in resource or "page-data" in resource)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ python_requires = >=3.7
install_requires =
typer>=0.4.1
quetz-server~=0.4
pydantic
pydantic<2

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit abb1412

Please sign in to comment.