mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
🎨 Format Python code with Black
This commit is contained in:
parent
0783af306d
commit
7b0383f865
1 changed files with 6 additions and 2 deletions
|
@ -304,7 +304,9 @@ def _diagnosis_ignore(add_filter=None, remove_filter=None, list=False):
|
|||
configuration["ignore_filters"][category] = []
|
||||
|
||||
if criterias in configuration["ignore_filters"][category]:
|
||||
logger.warning(f"(There is already a diagnosis {category} filter with these criterias)")
|
||||
logger.warning(
|
||||
f"(There is already a diagnosis {category} filter with these criterias)"
|
||||
)
|
||||
return
|
||||
|
||||
configuration["ignore_filters"][category].append(criterias)
|
||||
|
@ -322,7 +324,9 @@ def _diagnosis_ignore(add_filter=None, remove_filter=None, list=False):
|
|||
configuration["ignore_filters"][category] = []
|
||||
|
||||
if criterias not in configuration["ignore_filters"][category]:
|
||||
logger.warning(f"(There is no such diagnosis {category} filter with these criterias to remove)")
|
||||
logger.warning(
|
||||
f"(There is no such diagnosis {category} filter with these criterias to remove)"
|
||||
)
|
||||
return
|
||||
|
||||
configuration["ignore_filters"][category].remove(criterias)
|
||||
|
|
Loading…
Add table
Reference in a new issue