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 +2
-7
lines changed
src/java/main/com/topcoder/direct/services/view/util Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -7926,27 +7926,22 @@ 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 );
79307929 DataAccess dataAccessor = new DataAccess (DBMS .TCS_OLTP_DATASOURCE_NAME );
79317930 Request request = new Request ();
7932- request .setContentHandle ("project_name" );
7931+ // this refers to a query tool command/query
7932+ request .setContentHandle ("demand_work_id" );
79337933 request .setProperty ("tcdirectid" , String .valueOf (tcDirectProjectId ));
7934- //ResultSetContainer resultSetContainer = dataAccessor.getData(request).get("project_contest_results");
79357934 ResultSetContainer resultSetContainer = dataAccessor .getData (request ).get ("demand_work_id" );
79367935
79377936
79387937 if (resultSetContainer != null && resultSetContainer .size () > 0 ) {
7939- System .err .println ("got result" );
79407938 ResultSetRow resultSetRow = resultSetContainer .get (0 );
79417939 if (resultSetRow .getItem ("demand_work_id" ).getResultData () != null ) {
7942- System .err .println ("Found work id " + resultSetRow .getStringItem ("demand_work_id" ));
79437940 return resultSetRow .getStringItem ("demand_work_id" );
79447941 } else {
7945- System .err .println ("No demand work id in result set" );
79467942 return null ;
79477943 }
79487944 }
7949- System .err .println ("no demand work id" );
79507945
79517946 return null ;
79527947 }
You can’t perform that action at this time.
0 commit comments