mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
commit
965f6ebe4d
1 changed files with 2 additions and 3 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue