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 +6
-0
lines changed
src/java/main/com/topcoder/direct/services/view/util Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -7926,21 +7926,27 @@ public static InputStream generateWinnerSheet(long tcDirectProjectId) throws Exc
79267926 * @throws Exception if any error
79277927 */
79287928 public static String getDirectProjectDemandWorkId (long tcDirectProjectId ) throws Exception {
7929+ System .err .println ("getting demand work id for " + tcDirectProjectId );
79297930 DataAccess dataAccessor = new DataAccess (DBMS .TCS_OLTP_DATASOURCE_NAME );
79307931 Request request = new Request ();
79317932 request .setContentHandle ("project_name" );
79327933 request .setProperty ("tcdirectid" , String .valueOf (tcDirectProjectId ));
79337934 //ResultSetContainer resultSetContainer = dataAccessor.getData(request).get("project_contest_results");
79347935 ResultSetContainer resultSetContainer = dataAccessor .getData (request ).get ("demand_work_id" );
79357936
7937+
79367938 if (resultSetContainer != null && resultSetContainer .size () > 0 ) {
7939+ System .err .println ("got result" );
79377940 ResultSetRow resultSetRow = resultSetContainer .get (0 );
79387941 if (resultSetRow .getItem ("demand_work_id" ).getResultData () != null ) {
7942+ System .err .println ("Found work id " + resultSetRow .getStringItem ("demand_work_id" ));
79397943 return resultSetRow .getStringItem ("demand_work_id" );
79407944 } else {
7945+ System .err .println ("No demand work id in result set" );
79417946 return null ;
79427947 }
79437948 }
7949+ System .err .println ("no demand work id" );
79447950
79457951 return null ;
79467952 }
You can’t perform that action at this time.
0 commit comments