Commit c66a5e30 authored by Jacob Priddy's avatar Jacob Priddy 👌

Update composer dependencies and also fix borken stastics queries

parent 16921956
Pipeline #12507 passed with stages
in 3 minutes and 19 seconds
This diff is collapsed.
......@@ -72,14 +72,15 @@ FROM (
SELECT COUNT(*)
FROM attempts A
WHERE A.door_id = D.id
AND A.created_at BETWEEN :BEGIN AND :END
) failures,
(
SELECT COUNT(*)
FROM entries E
WHERE E.door_id = D.id
AND E.created_at BETWEEN :BEGIN AND :END
) entries
FROM doors as D
WHERE D.created_at BETWEEN :BEGIN AND :END
) as S
ORDER BY failure_ratio DESC
LIMIT :LIMIT
......@@ -136,14 +137,15 @@ FROM (
SELECT COUNT(*)
FROM attempts A
WHERE A.door_id = D.id
AND A.created_at BETWEEN :BEGIN AND :END
) failures,
(
SELECT COUNT(*)
FROM entries E
WHERE E.door_id = D.id
AND E.created_at BETWEEN :BEGIN AND :END
) entries
FROM doors as D
WHERE D.created_at BETWEEN :BEGIN AND :END
) as S
ORDER BY usage_count DESC
LIMIT :LIMIT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment