Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
only models with more than likes
Browse files
app.py
CHANGED
@@ -288,7 +288,7 @@ def get_page(page: int = 1, sort: Sort = Sort.trending, style: Style = Style.all
|
|
288 |
json_extract(data, '$.class.explicit') > 0.3 OR json_extract(data, '$.class.suggestive') > 0.3 AS isNFSW
|
289 |
FROM models
|
290 |
)
|
291 |
-
WHERE likes >
|
292 |
ORDER BY {sort_query}
|
293 |
LIMIT {MAX_PAGE_SIZE} OFFSET {(page - 1) * MAX_PAGE_SIZE}
|
294 |
""")
|
|
|
288 |
json_extract(data, '$.class.explicit') > 0.3 OR json_extract(data, '$.class.suggestive') > 0.3 AS isNFSW
|
289 |
FROM models
|
290 |
)
|
291 |
+
WHERE likes > 3 AND {style_query}
|
292 |
ORDER BY {sort_query}
|
293 |
LIMIT {MAX_PAGE_SIZE} OFFSET {(page - 1) * MAX_PAGE_SIZE}
|
294 |
""")
|