Merge pull request #1274 from YunoHost/ci-format-dev

[CI] Format code
This commit is contained in:
Alexandre Aubin 2021-08-04 18:49:43 +02:00 committed by GitHub
commit 965f6ebe4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,9 +129,8 @@ def app_search(string):
# Selecting apps according to a match in app name or description
matching_apps = {"apps": {}}
for app in catalog_of_apps["apps"].items():
if (
re.search(string, app[0], flags=re.IGNORECASE)
or re.search(string, app[1]["description"], flags=re.IGNORECASE)
if re.search(string, app[0], flags=re.IGNORECASE) or re.search(
string, app[1]["description"], flags=re.IGNORECASE
):
matching_apps["apps"][app[0]] = app[1]