src/main/java/seedu/address/logic/commands/LogCommand.java
/**
     * Handles the execute case if the flag is a reset all flag
     */
Handles the execute case if the flag is a reset all flag
Handles the execute case if the flag is a reset all flag
private CommandResult handleResetAll(Model model) {
        for (StudySpot studySpot: model.getFullList()) {
            StudiedHours newHours = new StudiedHours("0");
            StudySpot newStudySpot = setStudySpotHours(studySpot, newHours);
            model.setStudySpot(studySpot, newStudySpot);
        }
        model.updateFilteredStudySpotList(Model.PREDICATE_SHOW_ALL_STUDYSPOTS);
        return new CommandResult(MESSAGE_SUCCESS_RESET_ALL, true, false, false);
    }
private CommandResult handleResetAll ( Model model ) { for ( StudySpot studySpot : model . getFullList ( ) ) { StudiedHours newHours = new StudiedHours ( "0" ) ; StudySpot newStudySpot = setStudySpotHours ( studySpot , newHours ) ; model . setStudySpot ( studySpot , newStudySpot ) ; } model . updateFilteredStudySpotList ( Model . PREDICATE_SHOW_ALL_STUDYSPOTS ) ; return new CommandResult ( MESSAGE_SUCCESS_RESET_ALL , true , false , false ) ; }
Handles the execute case if the flag is a reset all flag
Handles the execute case if the flag is a reset all flag