Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
henilp105 committed Mar 23, 2024
1 parent 0c39d5e commit 27af742
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from models.user import User
from models.package import Package
from models.package import Version
from bson import json_util


parameters = {
Expand Down Expand Up @@ -604,7 +605,7 @@ def get_package_from_version(namespace_name, package_name, version):
return jsonify({"message": "Package not found", "code": 404}), 404

else:
package_obj = Package.from_json(json.dumps(package))
package_obj = Package.from_json(json_util.dumps(package))

# Get the package author from id.
package_author = db.users.find_one({"_id": package_obj.author})
Expand Down

0 comments on commit 27af742

Please sign in to comment.