diff --git a/environment.yml b/environment.yml index 21ddff0..9154665 100644 --- a/environment.yml +++ b/environment.yml @@ -5,3 +5,4 @@ dependencies: - quetz - nodejs=16 - yarn=1.22 + - pydantic<2 diff --git a/quetz_frontend/backend.py b/quetz_frontend/backend.py index fbe3180..0cc3286 100644 --- a/quetz_frontend/backend.py +++ b/quetz_frontend/backend.py @@ -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//packages/ + # 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) diff --git a/setup.cfg b/setup.cfg index c4b1cea..03a2682 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 =