Skip to content

Commit

Permalink
Ugh, only show actual open tickets with !gimme
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Dec 4, 2010
1 parent aa646ce commit f74ff68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/macruby_bugmash_bot/db.rb
Expand Up @@ -73,7 +73,7 @@ def self.tickets_marked_for_review
end end


def self.random_open_ticket def self.random_open_ticket
t = tickets.filter(:assigned_to => nil).all t = tickets.filter(:assigned_to => nil, :closed => false).all
unless t.empty? unless t.empty?
index = rand(t.size) index = rand(t.size)
t[index] t[index]
Expand Down

0 comments on commit f74ff68

Please sign in to comment.