diff options
Autocommit at 08.05.2022 @ 08:43
1 files changed, 9 insertions, 1 deletions
| -rw-r--r-- | src/UserInterface/VenueConsoleUI.cpp | 10 |
diff --git a/src/UserInterface/VenueConsoleUI.cpp b/src/UserInterface/VenueConsoleUI.cpp index 4c3f8cf..d2c4d24 100644 --- a/src/UserInterface/VenueConsoleUI.cpp +++ b/src/UserInterface/VenueConsoleUI.cpp @@ -145,7 +145,15 @@ void command_cancelEvent() { } void command_mostWatched() { - List<Event> top = es->queryMostWatched(10); + unsigned topN; + inputSubBox("How many to take?: ", &topN); + + List<Event> top = es->queryMostWatched(topN); + + printLine(""); + print("The top "); + print(topN); + printLine(" most watched events are:"); resetOrderedList(1); for (unsigned i = 0; i < top.get_count(); i++) { |
