Skip to content
Snippets Groups Projects
Commit 885ac4d8 authored by Otto Visser's avatar Otto Visser
Browse files

request -> requests for readability

parent 6c47b182
Branches
Tags
No related merge requests found
......@@ -541,17 +541,17 @@ public class Request implements RecordsEvents<Request>, Serializable, Comparable
}
public HashMap<String, String> toHashMap() {
HashMap<String, String> request = new HashMap<>();
request.put("id", this.getId().toString());
request.put("status", this.getStatus().toString());
request.put("sentence", this.toSentence());
request.put("labId", this.getLab().getId().toString());
request.put("course", this.getLab().getCourse().toString());
HashMap<String, String> requests = new HashMap<>();
requests.put("id", this.getId().toString());
requests.put("status", this.getStatus().toString());
requests.put("sentence", this.toSentence());
requests.put("labId", this.getLab().getId().toString());
requests.put("course", this.getLab().getCourse().toString());
if (this.getAssistant() != null)
request.put("assigned", this.getAssistant().toString());
requests.put("assigned", this.getAssistant().toString());
if (this.getHandledAt() != null)
request.put("handled", this.getHandledAt().toString());
return request;
requests.put("handled", this.getHandledAt().toString());
return requests;
}
public static String requestsPerHour(LocalDateTime start, LocalDateTime end, List<Request> requestList) throws JsonProcessingException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment