Skip to content

Commit

Permalink
Hackier (but more accurate) fix of un/an issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhallbachner-mb committed Aug 17, 2016
1 parent 638d4d4 commit 24acb98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/condition/condition_print.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def search(db)
ps = db.printings.select{|card| match_date?(get_date(card, max_date), query_date, precision)}.to_set

# avoid getting an and un confused
ps.select!{|printing| printing.set_code == @date} unless query_date.is_a?(Date) || @op != '='
ps.select!{|printing| printing.set_code == @date} if %w(an un).include?(@date)
ps
else
db.printings.to_set
Expand Down

0 comments on commit 24acb98

Please sign in to comment.