mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
6 lines
279 B
Python
6 lines
279 B
Python
ATTRS = ('name', 'description', 'github', 'source', 'version', 'url_download', 'url_icon', 'license')
|
|
|
|
_SELECT_BASE = "SELECT {} FROM apps".format(','.join(ATTRS))
|
|
|
|
SEARCH_BY_NAME_OR_DESCRIPTION = _SELECT_BASE + " WHERE lower(name) LIKE '%{}%' or lower(description) LIKE '%{}%'"
|