aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/grumpy.py')
-rw-r--r--frontend/grumpy.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/frontend/grumpy.py b/frontend/grumpy.py
index 972bbf9..3c4a62e 100644
--- a/frontend/grumpy.py
+++ b/frontend/grumpy.py
@@ -32,6 +32,16 @@ class GrumpyView(FlaskView):
else:
abort(404)
+ @route('/maintainer/<email>', methods=['GET'])
+ def maintainer(self, email):
+ maintainer = models.Maintainer.query.filter_by(email=email).first()
+ packages = models.Package.query.filter(models.Package.maintainers.contains(maintainer))
+
+ if maintainer:
+ return render_template('maintainer.html', maintainer=maintainer, packages=packages)
+ else:
+ abort(404)
+
@route('/maintainers', methods=['GET'])
def maintainers(self):
people = models.Maintainer.query.filter_by(is_project=False).order_by('email asc')