diff options
Diffstat (limited to 'app/views/packages.py')
-rw-r--r-- | app/views/packages.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/packages.py b/app/views/packages.py index e525caa..50c3f88 100644 --- a/app/views/packages.py +++ b/app/views/packages.py @@ -36,7 +36,7 @@ def getPageByInfo(type, author, name): abort(404) package = Package.query.filter_by(name=name, author_id=user.id, - type=PackageType.fromName(type)).first() + type=PackageType[type.upper()]).first() if package is None: abort(404) |