Skip to content
Extraits de code Groupes Projets
Valider 6ae5674b rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

BUGFIX !get

parent cccbdeb0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -92,6 +92,7 @@ sub exec { ...@@ -92,6 +92,7 @@ sub exec {
if ($all) { if ($all) {
$req = 'select id, sender, title, url, duration from playbot'; $req = 'select id, sender, title, url, duration from playbot';
$req .= ' where '.$words_sql if ($words_sql); $req .= ' where '.$words_sql if ($words_sql);
$req .= ' group by id';
$req .= ' order by rand()'; $req .= ' order by rand()';
$sth = $dbh->prepare($req); $sth = $dbh->prepare($req);
...@@ -103,6 +104,7 @@ sub exec { ...@@ -103,6 +104,7 @@ sub exec {
join playbot_chan pc on p.id = pc.content join playbot_chan pc on p.id = pc.content
where pc.chan = ?'; where pc.chan = ?';
$req .= ' and '.$words_sql if ($words_sql); $req .= ' and '.$words_sql if ($words_sql);
$req .= ' group by p.id';
$req .= ' order by rand()'; $req .= ' order by rand()';
$sth = $dbh->prepare($req); $sth = $dbh->prepare($req);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter