Add: Get data with the products' main query

This commit is contained in:
machiav3lli 2022-03-31 11:11:38 +02:00
parent 2ce7a421ea
commit cd6f18dd4c
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ const val ROW_ANTIFEATURES = "categories"
const val ROW_LICENSES = "categories"
const val ROW_DONATES = "categories"
const val ROW_SCREENSHOTS = "categories"
const val ROW_DATA = "data"
const val ROW_VERSION = "version"
const val ROW_SIGNATURE = "signature"
const val ROW_ID = "_id"

View File

@ -148,7 +148,7 @@ interface ProductDao : BaseDao<Product> {
COALESCE(installed.$ROW_VERSION_CODE, 0xffffffff) AND $signatureMatches)
AS $ROW_CAN_UPDATE, product.$ROW_COMPATIBLE, product.$ROW_ICON,
product.$ROW_METADATA_ICON, product.$ROW_RELEASES, product.$ROW_CATEGORIES,
product.$ROW_ANTIFEATURES, product.$ROW_LICENSES, product.$ROW_DONATES, product.$ROW_SCREENSHOTS,"""
product.$ROW_ANTIFEATURES, product.$ROW_LICENSES, product.$ROW_DONATES, product.$ROW_SCREENSHOTS, product.$ROW_DATA,"""
// Calculate the matching score with the search query
if (searchQuery.isNotEmpty()) {