radames commited on
Commit
42d4e25
1 Parent(s): b648312

only models with more than likes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 > 0 AND {style_query}
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
  """)