diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-03-20 04:11:50 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-03-20 04:11:50 +0000 |
commit | 623ca3da074e9c456faa7f3b7a2ba6cbf7e81fe5 (patch) | |
tree | 6449422f6efd797dd03d1e78fff79bd28c37dbc1 /app/views/packages.py | |
parent | 363f9d8016851a07ed6b0009b116f74b9e8bdaa6 (diff) | |
download | cheatdb-623ca3da074e9c456faa7f3b7a2ba6cbf7e81fe5.tar.xz |
Simplify PackageType
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) |