This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
src/main/java/com/appirio/service/challengefeeder/manager Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -139,18 +139,23 @@ public void pushChallengeFeeder(ChallengeFeederParam param) throws SupplyExcepti
139
139
for (ChallengeDetailData challenge : challenges ) {
140
140
String requirement = "" ;
141
141
if ("DESIGN" .equalsIgnoreCase (challenge .getTrack ())) {
142
- if (challenge .getStudioDetailRequirements () != null )
142
+ if (challenge .getStudioDetailRequirements () != null ) {
143
143
requirement = challenge .getStudioDetailRequirements ();
144
+ }
145
+
146
+ String introduction = challenge .getIntroduction () != null ? "" : challenge .getIntroduction ();
144
147
if (challenge .getRound1Introduction () != null ) {
145
- if (! requirement . startsWith ( challenge .getRound1Introduction ()) ) {
146
- requirement += String .format (ROUND_HEADER_HTML , "1" ) + challenge .getRound1Introduction ();
147
- requirement += "\n " ;
148
+ if (challenge .getRound1Introduction () != null ) {
149
+ introduction += String .format (ROUND_HEADER_HTML , "1" ) + challenge .getRound1Introduction ();
150
+ introduction += "\n " ;
148
151
}
149
152
}
150
153
151
154
if (challenge .getRound2Introduction () != null ) {
152
- requirement += String .format (ROUND_HEADER_HTML , "2" ) + challenge .getRound2Introduction ();
155
+ introduction += String .format (ROUND_HEADER_HTML , "2" ) + challenge .getRound2Introduction ();
153
156
}
157
+
158
+ challenge .setIntroduction (introduction );
154
159
} else if ("DEVELOP_MARATHON_MATCH" .equalsIgnoreCase (challenge .getSubTrack ()) || "MARATHON_MATCH" .equalsIgnoreCase (challenge .getSubTrack ())) {
155
160
if (challenge .getMarathonMatchDetailRequirements () != null ) {
156
161
requirement = challenge .getMarathonMatchDetailRequirements ();
You can’t perform that action at this time.
0 commit comments