MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _match

Function _match

Scripts/Developer Base/Mobile Desktop.py:1803–1807  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

1801 q = input(tr(cfg, "programs_search_prompt")).strip().lower()
1802 if q:
1803 def _match(p):
1804 name = (p.get("en","") + " " + p.get("gr","")).lower()
1805 desc = (p.get("desc_en","") + " " + p.get("desc_gr","")).lower()
1806 cat = str(p.get("cat","")).lower()
1807 return q in name or q in desc or q in cat
1808 view = [p for p in PROGRAMS if _match(p)]
1809
1810 elif choice != "1":

Callers 1

action_programs_installFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected