From 576783df55bd67a0370283c4c03a7b180bd471f1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 21 Jan 2023 12:13:01 -0800 Subject: [PATCH] applets/cjeopardy: qstats now shows all wrong answers instead of top 10 --- applets/cjeopardy/cjeopardy_answer.pl | 2 +- applets/cjeopardy/cjeopardy_qstats.pl | 2 -- lib/PBot/VERSION.pm | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/applets/cjeopardy/cjeopardy_answer.pl b/applets/cjeopardy/cjeopardy_answer.pl index ed2d9375..2e352ab6 100755 --- a/applets/cjeopardy/cjeopardy_answer.pl +++ b/applets/cjeopardy/cjeopardy_answer.pl @@ -268,7 +268,7 @@ foreach my $answer (@valid_answers) { my $ratio1 = ($t1 + $t1) / $a1; my $ratio2 = ($t2 + $t1) / $a2; - print STDERR "nick: $nick, t1 = $t1, t2 = $t2, a1 = $a1, a2 = $a2, ratio1 = $ratio1, ratio2 = $ratio2\n"; + #print STDERR "nick: $nick, t1 = $t1, t2 = $t2, a1 = $a1, a2 = $a2, ratio1 = $ratio1, ratio2 = $ratio2\n"; if ($ratio2 < $ratio1 and $player_data->{correct_streak} >= 3) { $player_data->{highest_quick_correct_streak} = $player_data->{correct_streak}; diff --git a/applets/cjeopardy/cjeopardy_qstats.pl b/applets/cjeopardy/cjeopardy_qstats.pl index 53c3fc26..d8cdcb5b 100755 --- a/applets/cjeopardy/cjeopardy_qstats.pl +++ b/applets/cjeopardy/cjeopardy_qstats.pl @@ -279,10 +279,8 @@ if (lc $command eq 'rank') { if (@$wrong_answers) { $stats .= ", wrong answers: "; - my $count = 0; my $sep = ""; foreach my $answer (sort { $b->{count} <=> $a->{count} } @$wrong_answers) { - last if ++$count >= 10; $stats .= $sep; $stats .= $answer->{answer}; if ($answer->{count} > 1) { diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 977b1076..68f43c0e 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4598, - BUILD_DATE => "2022-12-31", + BUILD_REVISION => 4600, + BUILD_DATE => "2023-01-21", }; sub initialize {}