projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c016b64
)
Pass contest to /pb/:problem response
author
Marius Gavrilescu
<marius@ieval.ro>
Fri, 23 Jan 2015 14:50:15 +0000
(16:50 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Fri, 23 Jan 2015 14:50:15 +0000
(16:50 +0200)
lib/Plack/App/Gruntmaster.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Plack/App/Gruntmaster.pm
b/lib/Plack/App/Gruntmaster.pm
index 4f2d6e18f3d9a6d3f11c0dc14ebaab6604c346a9..991159bf02bef79973aeeac2f6659c78002ab0c8 100644
(file)
--- a/
lib/Plack/App/Gruntmaster.pm
+++ b/
lib/Plack/App/Gruntmaster.pm
@@
-183,7
+183,7
@@
sub dispatch_request{
forbid !remote_user;
$privacy = 'private';
}
- response pb_entry => problem->name,
db->problem_entry($_{problem}, $_{contest}, remote_user && remote_user->id)
;
+ response pb_entry => problem->name,
{%{db->problem_entry($_{problem}, $_{contest}, remote_user && remote_user->id)}, maybe contest => $_{contest}}
;
},
sub (/sol/:problem) {
forbid !problem->is_in_archive;
This page took
0.011052 seconds
and
4
git commands to generate.