From 2d6b2fcbcf1957761cebeb7f120d596648721642 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 8 May 2022 08:43:01 +0300 Subject: Autocommit at 08.05.2022 @ 08:43 --- src/UserInterface/VenueConsoleUI.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/UserInterface/VenueConsoleUI.cpp') 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 top = es->queryMostWatched(10); + unsigned topN; + inputSubBox("How many to take?: ", &topN); + + List 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++) { -- cgit v1.3.1-23-gd82d