Skip to content
Snippets Groups Projects
Commit 57aa95a0 authored by helene ortiz's avatar helene ortiz
Browse files

remove debug file investigations.txt

parent f500571c
No related branches found
No related tags found
No related merge requests found
4.0.40 06/07/2020
------
* Remove debug file investigations.txt.
4.0.39 06/07/2020
------
* Save nomadServerEndpoint in local file earlier.
......
......@@ -188,13 +188,13 @@ public class UserConnection {
public ArrayList<Proposal> getProposals() {
try {
//try {
if (isLogged()) {
if (!proposalsByUser.containsKey(userName)) {
ArrayList<Proposal> proposals = new ArrayList<Proposal>();
BufferedWriter writer = Nomad.initFile(DEBUG_FILE_PATH);
//BufferedWriter writer = Nomad.initFile(DEBUG_FILE_PATH);
JSONObject jsonObject = null;
if (ConfigManager.getInstance().mockMode()) {
jsonObject = MockDataAccessor.getInstance().getProposals(userName);
......@@ -206,7 +206,7 @@ public class UserConnection {
if (metadata != null) {
long count = (Long)metadata.get(Proposal.JSON_COUNT);
System.out.println("Number of proposals for " + userName + " = " + count);
Nomad.printToFile(writer, "Number of proposals for " + userName + " = " + count + "\n");
//Nomad.printToFile(writer, "Number of proposals for " + userName + " = " + count + "\n");
// Account data including staff status and login.
JSONObject account = (JSONObject)metadata.get(Proposal.JSON_ACCOUNT);
......@@ -238,19 +238,19 @@ public class UserConnection {
JSONObject cycle = (JSONObject)cycleObject;
cycleId = (Long)cycle.get(Proposal.JSON_ID);
}
Nomad.printToFile(writer, id + " *** " + code + "\n");
//Nomad.printToFile(writer, id + " *** " + code + "\n");
proposals.add(new Proposal(id, title, code, cycleId));
}
}
}
Nomad.closeFile(writer);
//Nomad.closeFile(writer);
proposalsByUser.put(userName, proposals);
}
return proposalsByUser.get(userName);
}
} catch (IOException ioe) {
/*} catch (IOException ioe) {
// does not matter, the file is just used to debug
}
}*/
// state is internal use
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment