Skip to content

Commit

Permalink
EPMRPP-95331 fix analyzed items count (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx authored Sep 19, 2024
1 parent 230167d commit 2ac782d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,14 @@ public void execute() {

if (metadata.optInt("userAnalyzed") > 0) {
status.add("manually");
sentToAnalyze += metadata.optInt("userAnalyzed");
} else {
status.add("automatically");
sentToAnalyze += metadata.optInt("sentToAnalyze");
}

userAnalyzed += metadata.optInt("userAnalyzed");
autoAnalyzed += metadata.optInt("analyzed");
sentToAnalyze += metadata.optInt("userAnalyzed") + metadata.optInt("sentToAnalyze");
version = metadata.getString("version");

} while (rs.next());
Expand Down Expand Up @@ -164,6 +165,9 @@ public void execute() {
sendRequest(requestBody);

});

LOGGER.info("Completed items defect update statistics job");

}

private void sendRequest(JSONObject requestBody) {
Expand Down

0 comments on commit 2ac782d

Please sign in to comment.