Website Summary Files Commits Branches @commit @diff @stats
path: root / src / UserInterface / VenueConsoleUI.cpp
diff options
context:
space:
mode:
Commit2d6b2fcbcf1957761cebeb7f120d596648721642 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-08 08:43:01 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-08 08:43:01 +0300
Files9803beea73a2010ea21a0411ae0b9c02f271fcd7 /src/UserInterface/VenueConsoleUI.cpp
FMI-OOP-P1_TicketSystem-2d6b2fcbcf1957761cebeb7f120d596648721642.tar
FMI-OOP-P1_TicketSystem-2d6b2fcbcf1957761cebeb7f120d596648721642.tar.gz
FMI-OOP-P1_TicketSystem-2d6b2fcbcf1957761cebeb7f120d596648721642.zip
Parentad74e975c5ef569a947b5c40e588004052505f3b (diff)
Autocommit at 08.05.2022 @ 08:43
1 files changed, 9 insertions, 1 deletions
-rw-r--r--src/UserInterface/VenueConsoleUI.cpp10
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++) {