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

insert a tag already in context changes it in real tag

parent f23ca224
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -34,7 +34,10 @@ sub addTag
return if ($stopwords_en->{lc $tag} or $stopwords_fr->{lc $tag});
my $sth = $dbh->prepare_cached('INSERT INTO playbot_tags (id, tag, context) VALUES (?, ?, ?)');
my $sth = $dbh->prepare_cached('INSERT INTO playbot_tags (id, tag, context)
VALUES (?, ?, ?)
ON DUPLICATE KEY
UPDATE context = 0');
$log->error("Couldn't prepare querie; aborting") unless (defined $sth);
$sth->execute($id, $tag, ($context) ? 1 : 0)
......
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