mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-09 11:31:27 +00:00
lipsync usage, better estimate for lipsync jobs
This commit is contained in:
1 parent
a330a18e54
commit
021ca222ae
7 files changed
+48
-2
No files matched your search
@@ -0,0 +1,20 @@
|
||||
|
||||
-- Total usage
|
||||
select
|
||||
count(*) as use_count
|
||||
from generic_inference_jobs as gij
|
||||
where gij.product_category = 'vid_face_fusion'
|
||||
and gij.created_at >= (CURDATE() - INTERVAL 5 DAY)
|
||||
|
||||
-- Usage by user
|
||||
select
|
||||
u.token,
|
||||
u.username,
|
||||
count(*) as use_count
|
||||
from generic_inference_jobs as gij
|
||||
left outer join users as u
|
||||
on u.token = gij.maybe_creator_user_token
|
||||
where gij.product_category = 'vid_face_fusion'
|
||||
and gij.created_at >= (CURDATE() - INTERVAL 5 DAY)
|
||||
group by u.token, u.username
|
||||
order by use_count desc
|
||||
Reference in new issue
Block a user