mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Set out-of-catalog, broken, bad quality apps diagnosis as warnings
This commit is contained in:
parent
d641659bf3
commit
fb9e892019
1 changed files with 2 additions and 2 deletions
|
@ -62,12 +62,12 @@ class MyDiagnoser(Diagnoser):
|
|||
# Check quality level in catalog
|
||||
|
||||
if not app.get("from_catalog") or app["from_catalog"].get("state") != "working":
|
||||
yield ("error", "diagnosis_apps_not_in_app_catalog")
|
||||
yield ("warning", "diagnosis_apps_not_in_app_catalog")
|
||||
elif (
|
||||
not isinstance(app["from_catalog"].get("level"), int)
|
||||
or app["from_catalog"]["level"] == 0
|
||||
):
|
||||
yield ("error", "diagnosis_apps_broken")
|
||||
yield ("warning", "diagnosis_apps_broken")
|
||||
elif app["from_catalog"]["level"] <= 4:
|
||||
yield ("warning", "diagnosis_apps_bad_quality")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue