Francois Gouget : testbot/web: Use the Get method for the Stats page.
Module: tools Branch: master Commit: 63e67bb794bbaf761a83223a0292dbf9097a0e40 URL: https://source.winehq.org/git/tools.git/?a=commit;h=63e67bb794bbaf761a83223a... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Mon Mar 28 17:32:37 2022 +0200 testbot/web: Use the Get method for the Stats page. This makes it easier to bookmark the page for custom values. Also make the action nameless for a cleaner URL. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/web/Stats.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testbot/web/Stats.pl b/testbot/web/Stats.pl index 8433c6d..39c2878 100644 --- a/testbot/web/Stats.pl +++ b/testbot/web/Stats.pl @@ -44,6 +44,7 @@ sub _initialize($$$) CreateBasicPropertyDescriptor("Days", "Days to analyze", !1, 1, "N", 2), ); $self->SUPER::_initialize($Request, $RequiredRole, \@PropertyDescriptors); + $self->{Method} = "get"; if (!$self->GetParam("Days") or !$self->Validate() or !int($self->GetParam("Days"))) # 00 case! @@ -368,7 +369,7 @@ sub GenerateBody($) sub GetActions($) { #my ($self) = @_; - return ["Update"]; + return [".Update"]; } sub GenerateFooter($)
participants (1)
-
Alexandre Julliard