Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into report_paging
  • Loading branch information
SlimaneAmar committed Nov 29, 2023
2 parents 3906ae1 + 70571b1 commit 7b14ac2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ private Integer deleteShortcircuitResults() {
AtomicReference<Long> startTime = new AtomicReference<>();
startTime.set(System.nanoTime());
List<NetworkModificationNodeInfoEntity> nodes = networkModificationNodeInfoRepository.findAllByShortCircuitAnalysisResultUuidNotNull();
nodes.stream().forEach(node -> node.setShortCircuitAnalysisResultUuid(null));
nodes.stream().forEach(node -> {
node.setShortCircuitAnalysisResultUuid(null);
node.setOneBusShortCircuitAnalysisResultUuid(null);
});
Map<UUID, String> subreportToDelete = formatSubreportMap(ComputationType.SHORT_CIRCUIT.subReporterKey, nodes);
reportService.deleteTreeReports(subreportToDelete);
shortCircuitService.deleteShortCircuitAnalysisResults();
Expand Down

0 comments on commit 7b14ac2

Please sign in to comment.