Files
bearhub/bauh/gems/appimage/query.py
Vinicius Moreira 53bf6de34f installing appimage
2019-10-03 19:09:31 -03:00

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 '%{}%'"