From 2ee6edcf1262d2a3059dd0859d9b750c4a2ff02b Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 26 Jan 2014 11:05:11 +0200 Subject: [PATCH] Add problem owner and author --- lib/Gruntmaster/Data.pm | 2 +- lib/Gruntmaster/Page/Pb/Entry.pm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 77d78c0..aac9ad1 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -69,7 +69,7 @@ sub defhash{ }; } -defhash problem => qw/name level statement/; +defhash problem => qw/name level statement owner author/; defhash contest => qw/start end name owner/; defhash job => qw/date extension filesize private problem result result_text user/; defhash user => qw/name email town university level/; diff --git a/lib/Gruntmaster/Page/Pb/Entry.pm b/lib/Gruntmaster/Page/Pb/Entry.pm index dbf66b4..0516053 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -44,6 +44,8 @@ sub _generate{ $htc->param(id => $id); local $Gruntmaster::Data::contest = $contest if $contest; $htc->param(name => problem_name $id); + $htc->param(author => problem_author $id); + $htc->param(owner => problem_owner $id); $htc->param(statement => problem_statement $id); } -- 2.39.2