From 13da2ecfbbf7cf5277ad47cbdd9ac67c1401514a Mon Sep 17 00:00:00 2001 From: Henil Panchal Date: Thu, 18 Apr 2024 19:49:49 +0530 Subject: [PATCH] fix: package search bug --- backend/models/package.py | 2 +- backend/packages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/models/package.py b/backend/models/package.py index c958d6be..eaf4aded 100644 --- a/backend/models/package.py +++ b/backend/models/package.py @@ -11,7 +11,7 @@ def __init__(self, name, namespace, namespace_name, description, homepage, repos self.homepage = homepage self.repository = repository self.copyright = copyright - self.license = license, + self.license = license self.created_at = created_at self.updated_at = updated_at self.author = author diff --git a/backend/packages.py b/backend/packages.py index f6a4aa24..07e39c52 100644 --- a/backend/packages.py +++ b/backend/packages.py @@ -583,7 +583,7 @@ def get_package_from_version(namespace_name, package_name, version): package = db.packages.find_one( { "name": package_name, - "namespace": namespace_name, + "namespace_name": namespace_name, "versions.version": version, } )