- Timestamp:
- 01/10/25 00:33:50 (6 days ago)
- Branches:
- master
- Children:
- 1c51912
- Parents:
- c164f8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
backend/GlobeGuru-backend/src/main/java/FrontendHandler.java
rc164f8f r53bad7e 101 101 String departureDate = formData.get("departureDate"); 102 102 String nightsNumberStr = formData.get("nightsNumber"); 103 String numPeopleStr = formData.get("numberPeople"); 103 104 int numberOfNights = (nightsNumberStr != null && !nightsNumberStr.isEmpty()) ? Integer.parseInt(nightsNumberStr) : 0; 105 int numPeople = Integer.parseInt(numPeopleStr); 104 106 String queryDate = ""; 105 107 boolean dateFlag = false; … … 121 123 List<Option> options; 122 124 try { 123 options = DatabaseUtil.queryOptions(destination, queryDate, dateFlag);125 options = DatabaseUtil.queryOptions(destination, queryDate, numPeople, dateFlag); 124 126 } catch (SQLException e) { 125 127 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.