[Bps-public-commit] App-Changeloggr branch, master, updated. 5b6630173195372fe864e7f0070eeb5fa8be9a1a

sartak at bestpractical.com sartak at bestpractical.com
Wed May 27 16:07:28 EDT 2009


The branch, master has been updated
       via  5b6630173195372fe864e7f0070eeb5fa8be9a1a (commit)
      from  c1e8bc3d2e3308b42f9bab7c9ecbbddcab2a846e (commit)

Summary of changes:
 lib/App/Changeloggr/Model/Change.pm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 5b6630173195372fe864e7f0070eeb5fa8be9a1a
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed May 27 16:07:19 2009 -0400

    Query for hotkey as well

diff --git a/lib/App/Changeloggr/Model/Change.pm b/lib/App/Changeloggr/Model/Change.pm
index 38d024c..4ec3029 100644
--- a/lib/App/Changeloggr/Model/Change.pm
+++ b/lib/App/Changeloggr/Model/Change.pm
@@ -143,8 +143,13 @@ sub prioritized_tags {
     $tags->column(
         column => 'text',
     );
+    $tags->column(
+        column => 'hotkey',
+    );
+
+    # In order to pull out the hotkey, we need to group by it in Postgres
     $tags->group_by(
-        column => 'text',
+        function => 'main.text,main.hotkey',
     );
     $tags->order_by(
         function => "count($votes.tag)",

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list