Skip to content

Commit

Permalink
Fix observable list bug
Browse files Browse the repository at this point in the history
  • Loading branch information
keiteo committed Nov 10, 2019
1 parent c7db189 commit 3caf301
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
31 changes: 20 additions & 11 deletions docs/UserGuide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -284,28 +284,37 @@ Shows the calendar filled with all deadlines in the month. The calendar will be
`calendar`

//end::deadline[]
//@@author keiteo
=== Test mode: `start`

=== Test mode
==== Start command: `start [category]`
This command starts the flashcard test mode. If no parameter is supplied, the application will test all
available FlashCards.

==== Start command
This command starts the flashcard test mode.
E.g. `start`

`start`
image::StartEmptyParam.png[width="600"]

Starts the flashcard test from any specific category
`start [category]`
If tag(s) are entered, this command starts the FlashCard test from any specific category. Only relevant FlashCards from the tag(s) will
be tested.

==== See flashcard answer
This command allows you to check the answer of the flashcard question.
E.g. `start [category]`

image::StartWithTagParam.png[width="600"]

`ans`
==== See flashcard answer: `ans`
This command allows you to check the answer of the flashcard question.

==== Rate flashcard
==== Rate flashcard: `rate [easy/good/hard]`
This command rates the flashcard, depending on how well you answered the question i.e. easy, good, hard.

`rate [rating]`, e.g. `rate hard`

==== End test
==== Skip question: `skip`
If you would like to manually filter and skip questions, the `skip` command helps you to skip FlashCards,
saving you extra time.

==== End test: `end`
You can stop the test any time simply by typing `end`.

//@@author LeowWB
Expand Down
Binary file added docs/images/StartEmptyParam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/StartWithTagParam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private List<FlashCard> searchTag(Model model) {

CategoryContainsAnyKeywordsPredicate predicate = getSearchTermPredicate();
logger.log(Level.INFO, "Getting a list of flashcards to test");
return model.getFilteredFlashCardListNoCommit(predicate);
return new LinkedList<>(model.getFilteredFlashCardListNoCommit(predicate));
}

/** Converts tagName to a CategoryContainsAnyKeywordsPredicate for searchTag(). */
Expand Down

0 comments on commit 3caf301

Please sign in to comment.