fix: remove print

This commit is contained in:
Johannes Kantz 2023-02-05 08:38:40 +01:00
parent 941e76e05b
commit 1dadd23ffb

View File

@ -17,7 +17,6 @@ public class OrderHistoryController {
List<String> orders = new ArrayList<>(); List<String> orders = new ArrayList<>();
for (Child child : children) { for (Child child : children) {
System.out.println(child.getId());
List<String> selections = Database.select("food_selection", new String[] { "childid" }, new String[] { String.valueOf(child.getId()) }); List<String> selections = Database.select("food_selection", new String[] { "childid" }, new String[] { String.valueOf(child.getId()) });
for (String selection : selections) { for (String selection : selections) {
String[] selectionParts = selection.split(":"); String[] selectionParts = selection.split(":");
@ -30,6 +29,7 @@ public class OrderHistoryController {
} }
Collections.sort(orders); Collections.sort(orders);
Collections.reverse(orders);
for(String order : orders){ for(String order : orders){
listView.getItems().add(order); listView.getItems().add(order);
} }