Skip to content
Browse files

Ugh, only show actual open tickets with !gimme

  • Loading branch information...
1 parent aa646ce commit f74ff68fdea8ff6e3b0a9ae139f7fec8f591c31a @alloy alloy committed Dec 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/macruby_bugmash_bot/db.rb
View
2 lib/macruby_bugmash_bot/db.rb
@@ -73,7 +73,7 @@ def self.tickets_marked_for_review
end
def self.random_open_ticket
- t = tickets.filter(:assigned_to => nil).all
+ t = tickets.filter(:assigned_to => nil, :closed => false).all
unless t.empty?
index = rand(t.size)
t[index]

0 comments on commit f74ff68

Please sign in to comment.
Something went wrong with that request. Please try again.