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