Skip to content

Commit

Permalink
fix: package search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
henilp105 committed Apr 18, 2024
1 parent 908d087 commit 13da2ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/models/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)
Expand Down

0 comments on commit 13da2ec

Please sign in to comment.