mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Only display 'active' maintainers who have at least one working+maintained app
This commit is contained in:
parent
4388c05fa8
commit
51604a9fe4
1 changed files with 4 additions and 1 deletions
|
@ -161,7 +161,6 @@ def app_maintainer_dash():
|
|||
maintainers = set()
|
||||
apps = App.query.all()
|
||||
for app in apps:
|
||||
maintainers.update(app.maintainers)
|
||||
for test in app.most_recent_tests_per_branch():
|
||||
if test.branch.name == "stable":
|
||||
app.ci_level = test.level
|
||||
|
@ -169,6 +168,10 @@ def app_maintainer_dash():
|
|||
if isinstance(app.public_level, str):
|
||||
app.public_level = -1
|
||||
|
||||
if app.maintained and app.state in ["working", "official"]:
|
||||
maintainers.update(app.maintainers)
|
||||
|
||||
|
||||
maintainers = sorted(maintainers, key=lambda m: m.lower())
|
||||
apps = sorted(apps, key=lambda app: app.name.lower())
|
||||
|
||||
|
|
Loading…
Reference in a new issue