src/main/java/seedu/address/logic/commands/LogCommand.java
/**
     * Handles the execute case if the flag is an override flag
     */
Handles the execute case if the flag is an override flag
Handles the execute case if the flag is an override flag
private CommandResult handleOverride(Model model, StudySpot studySpot, StudiedHours studiedHours) {
        StudySpot newStudySpot = setStudySpotHours(studySpot, studiedHours);
        model.setStudySpot(studySpot, newStudySpot);
        model.updateFilteredStudySpotList(Model.PREDICATE_SHOW_ALL_STUDYSPOTS);
        return new CommandResult(String.format(MESSAGE_SUCCESS_OVERRIDE, studiedHours, studySpot.getName()),
                true, false, false);
    }
private CommandResult handleOverride ( Model model , StudySpot studySpot , StudiedHours studiedHours ) { StudySpot newStudySpot = setStudySpotHours ( studySpot , studiedHours ) ; model . setStudySpot ( studySpot , newStudySpot ) ; model . updateFilteredStudySpotList ( Model . PREDICATE_SHOW_ALL_STUDYSPOTS ) ; return new CommandResult ( String . format ( MESSAGE_SUCCESS_OVERRIDE , studiedHours , studySpot . getName ( ) ) , true , false , false ) ; }
Handles the execute case if the flag is an override flag
Handles the execute case if the flag is an override flag