From c6406a3e7a7876cdc2bba955ad69128068bddb74 Mon Sep 17 00:00:00 2001 From: Valentino Orlandi Date: Tue, 6 Feb 2024 21:25:27 +0100 Subject: [PATCH] Fix --- logdoctor/modules/craplog/modules/hash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logdoctor/modules/craplog/modules/hash.cpp b/logdoctor/modules/craplog/modules/hash.cpp index f0a147ee..4448f444 100644 --- a/logdoctor/modules/craplog/modules/hash.cpp +++ b/logdoctor/modules/craplog/modules/hash.cpp @@ -134,7 +134,7 @@ void HashOps::insertUsedHashes( const std::string& db_path, const std::vectorhashes.at( web_server ), hash ) ) { + if ( ! VecOps::contains( this->hashes.at( web_server ), hash ) ) { db.getQuery()( QStringLiteral(R"(INSERT INTO "%1" ( hash ) VALUES ( '%2' );)") .arg( this->ws_names.at(web_server), QString::fromStdString(hash).replace(QLatin1Char('\''),QLatin1String("''")) ) );