From Redis to Postgres - Part 3 (Bugfixes, first try)
[gruntmaster-page.git] / app.psgi
index 2e3f6405c7b7848c5ee1e8ffde433430f92e2260..e662e264184bbf6c93705e9105895590e38014f0 100644 (file)
--- a/app.psgi
+++ b/app.psgi
@@ -61,6 +61,7 @@ sub mangle_request {
                        $env->{'gruntmaster.problem'} = $1 if s,^/pb/$word/,/,;
                        $env->{'gruntmaster.contest'} = $1 if s,^/ct/$word/,/,;
                        $env->{'gruntmaster.user'}    = $1 if s,^/us/$word/,/,;
+                       $env->{'gruntmaster.page'}  //= -1 if m,^/log/$,;
                }
                $app->($env);
        }
This page took 0.008978 seconds and 4 git commands to generate.