Ignore:
Timestamp:
01/10/25 00:33:50 (6 days ago)
Author:
Kristijan <kristijanzafirovski26@…>
Branches:
master
Children:
1c51912
Parents:
c164f8f
Message:

dodadeno informacii za broj na lugje

File:
1 edited

Legend:

Unmodified
Added
Removed
  • backend/GlobeGuru-backend/src/main/java/FrontendHandler.java

    rc164f8f r53bad7e  
    101101        String departureDate = formData.get("departureDate");
    102102        String nightsNumberStr = formData.get("nightsNumber");
     103        String numPeopleStr = formData.get("numberPeople");
    103104        int numberOfNights = (nightsNumberStr != null && !nightsNumberStr.isEmpty()) ? Integer.parseInt(nightsNumberStr) : 0;
     105        int numPeople = Integer.parseInt(numPeopleStr);
    104106        String queryDate = "";
    105107        boolean dateFlag = false;
     
    121123        List<Option> options;
    122124        try {
    123             options = DatabaseUtil.queryOptions(destination, queryDate, dateFlag);
     125            options = DatabaseUtil.queryOptions(destination, queryDate, numPeople, dateFlag);
    124126        } catch (SQLException e) {
    125127            e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.