aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-08 23:00:45 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-08 23:00:45 +0100
commitb2809ed12eb3d8d2aca73c1a9ea1505085c307e6 (patch)
treedbd6f23c26a048f28f1df4379b80d1be99137acc
parenta72b9a174ab6b811a53b47811384c76da1c524be (diff)
downloadcheatdb-b2809ed12eb3d8d2aca73c1a9ea1505085c307e6.tar.xz
Fix maintainers field requiring lowercase names
-rw-r--r--app/blueprints/packages/packages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/blueprints/packages/packages.py b/app/blueprints/packages/packages.py
index 853153c..12242ab 100644
--- a/app/blueprints/packages/packages.py
+++ b/app/blueprints/packages/packages.py
@@ -403,7 +403,7 @@ def edit_maintainers(package):
form.maintainers_str.data = ", ".join([ x.username for x in package.maintainers ])
if request.method == "POST" and form.validate():
- usernames = [x.strip() for x in form.maintainers_str.data.split(",")]
+ usernames = [x.strip().lower() for x in form.maintainers_str.data.split(",")]
users = User.query.filter(func.lower(User.username).in_(usernames)).all()
package.maintainers.clear()
package.maintainers.extend(users)