This commit is contained in:
root
2025-12-20 19:31:46 +05:00
parent f8d8e9c235
commit f517907073
@@ -71,18 +71,18 @@ public class MarketingAnalysisService {
private static final String[] SECTION_ROMANS = new String[] { "I", "II", "III", "IV", "V", "VI", "VII", "VIII", private static final String[] SECTION_ROMANS = new String[] { "I", "II", "III", "IV", "V", "VI", "VII", "VIII",
"IX", "X", "XI" }; "IX", "X", "XI" };
private static final Map<String, String> ROMAN_TO_ANCHOR_ID = Map.of( private static final Map<String, String> ROMAN_TO_ANCHOR_ID = Map.ofEntries(
"I", "section-i", Map.entry("I", "section-i"),
"II", "section-ii", Map.entry("II", "section-ii"),
"III", "section-iii", Map.entry("III", "section-iii"),
"IV", "section-iv", Map.entry("IV", "section-iv"),
"V", "section-v", Map.entry("V", "section-v"),
"VI", "section-vi", Map.entry("VI", "section-vi"),
"VII", "section-vii", Map.entry("VII", "section-vii"),
"VIII", "section-viii", Map.entry("VIII", "section-viii"),
"IX", "section-ix", Map.entry("IX", "section-ix"),
"X", "section-x", Map.entry("X", "section-x"),
"XI", "section-xi"); Map.entry("XI", "section-xi"));
private String addAnchorsAndHeadingLevelsForSections(String fullAnalysis) { private String addAnchorsAndHeadingLevelsForSections(String fullAnalysis) {
if (fullAnalysis == null || fullAnalysis.isBlank()) { if (fullAnalysis == null || fullAnalysis.isBlank()) {
@@ -3390,7 +3390,6 @@ public class MarketingAnalysisService {
// Key metrics block before section I // Key metrics block before section I
String regionStr = "-"; String regionStr = "-";
List<String> regions = request.getRegion();
if (regions != null && !regions.isEmpty()) { if (regions != null && !regions.isEmpty()) {
regionStr = String.join(", ", regions); regionStr = String.join(", ", regions);
} }