Files
bearhub/bauh/gems/appimage/query.py
2019-10-07 14:55:06 -03:00

6 lines
289 B
Python

ATTRS = ('name', 'description', 'github', 'source', 'version', 'url_download', 'url_icon', 'license', 'author')
_SELECT_BASE = "SELECT {} FROM apps".format(','.join(ATTRS))
SEARCH_BY_NAME_OR_DESCRIPTION = _SELECT_BASE + " WHERE lower(name) LIKE '%{}%' or lower(description) LIKE '%{}%'"