Skip to content

Commit

Permalink
Fix. Scanner. Cure. Fixed cci counters on manual run.
Browse files Browse the repository at this point in the history
alexandergull committed Dec 23, 2024
1 parent ae1c156 commit 11804fc
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion lib/CleantalkSP/SpbctWP/Scanner/CureLog/CureLog.php
Original file line number Diff line number Diff line change
@@ -129,7 +129,11 @@ public function logCureResult(CureLogRecord $cure_log_record)
cured = VALUES(`cured`),
last_cure_date = VALUES(`last_cure_date`),
fail_reason = VALUES(`fail_reason`),
scanner_start_local_date = VALUES(`scanner_start_local_date`)',
scanner_start_local_date = VALUES(`scanner_start_local_date`),
cci_cured = VALUES(`cci_cured`),
has_backup = VALUES(`has_backup`),
fail_reason = VALUES(`fail_reason`),
last_cure_date = VALUES(`last_cure_date`)',
array($cure_log_record->fast_hash,
$cure_log_record->full_hash,
$cure_log_record->cured_hash,
@@ -142,5 +146,27 @@ public function logCureResult(CureLogRecord $cure_log_record)
$cure_log_record->scanner_start_local_date,
)
)->execute();

// $this->db->prepare(
// 'INSERT INTO ' . SPBC_TBL_CURE_LOG
// . ' (`fast_hash`, `full_hash`, `cured_hash`, `real_path`, `cured`, `cci_cured`,`has_backup`,`fail_reason`, `last_cure_date`, `scanner_start_local_date`) VALUES'
// . "(%s, %s, %s, %s, %d, %s, %d, %s, %d, %s)"
// . 'ON DUPLICATE KEY UPDATE
// cured = VALUES(`cured`),
// last_cure_date = VALUES(`last_cure_date`),
// fail_reason = VALUES(`fail_reason`),
// scanner_start_local_date = VALUES(`scanner_start_local_date`)',
// array($cure_log_record->fast_hash,
// $cure_log_record->full_hash,
// $cure_log_record->cured_hash,
// $cure_log_record->real_path,
// $cure_log_record->cured,
// $cure_log_record->cci_cured,
// $cure_log_record->has_backup,
// $cure_log_record->fail_reason,
// $cure_log_record->last_cure_date,
// $cure_log_record->scanner_start_local_date,
// )
// )->execute();
}
}

0 comments on commit 11804fc

Please sign in to comment.