Fix getting random sequence

This commit is contained in:
2023-01-26 18:33:36 +01:00
parent 832a8d4c49
commit 99092a5057

View File

@@ -50,8 +50,7 @@ WITH filtered_sequences AS (
WHERE sequence = sequences.id WHERE sequence = sequences.id
) )
) )
SELECT id FROM filtered_sequences SELECT id FROM filtered_sequences;
ORDER BY RANDOM() LIMIT 1;
""" """