chawin.chen commited on
Commit
bda6cb2
·
1 Parent(s): 640e3c9
Files changed (1) hide show
  1. database.py +1 -0
database.py CHANGED
@@ -460,6 +460,7 @@ async def fetch_user_devices(
460
  SELECT COUNT(*)
461
  FROM tpl_app_processed_images p
462
  WHERE p.nickname LIKE CONCAT('android_release_', d.device_id, '%%')
 
463
  ), 0) AS detection_count
464
  FROM tpl_app_user_devices d
465
  {where_sql}
 
460
  SELECT COUNT(*)
461
  FROM tpl_app_processed_images p
462
  WHERE p.nickname LIKE CONCAT('android_release_', d.device_id, '%%')
463
+ AND p.category = 'original'
464
  ), 0) AS detection_count
465
  FROM tpl_app_user_devices d
466
  {where_sql}