You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO(plural): build in explicit support for requirements
136
-
# {is_banned,is_restricted,eternal_points,global_penalty,universal_faction_cost} all require restriction_id, would be good to have card_pool_id as well.
137
-
# TODO(plural): build in explicit support for smart defaults, like restriction_id should imply is_banned = false. card_pool_id should imply the latest restriction list.
136
+
# {is_banned,is_restricted,eternal_points,has_global_penalty,universal_faction_cost} all require restriction_id, would be good to have card_pool_id as well.
137
+
# TODO(plural): build in explicit support for smart defaults, like restriction_id should imply is_banned = false. card_pool_id should imply the latest restriction list.
138
138
@parse_tree[:fragments].each{|f|
139
139
iff.include?(:search_term)
140
140
keyword=f[:search_term][:keyword].to_s
@@ -158,7 +158,7 @@ def initialize(query)
158
158
if !value.match?(/\A\d+\Z/)
159
159
@parse_error='Invalid value "%s" for integer field "%s"' % [value,keyword]
@@ -150,7 +150,7 @@ class PrintingSearchQueryBuilder
150
150
'faction'=>:card,
151
151
'format'=>:unified_restrictions,
152
152
'g'=>:card,
153
-
'global_penalty'=>:unified_restrictions,
153
+
'has_global_penalty'=>:unified_restrictions,
154
154
'h'=>:card,
155
155
'i'=>:illustrators,
156
156
'illustrator'=>:illustrators,
@@ -183,7 +183,7 @@ def initialize(query)
183
183
@query=query
184
184
@parse_error=nil
185
185
@parse_tree=nil
186
-
@left_joins=Set.new
186
+
@left_joins=Set.new
187
187
@where=''
188
188
@where_values=[]
189
189
begin
@@ -197,8 +197,8 @@ def initialize(query)
197
197
constraints=[]
198
198
where=[]
199
199
# TODO(plural): build in explicit support for requirements
200
-
# {is_banned,is_restricted,eternal_points,global_penalty,universal_faction_cost} all require restriction_id, would be good to have card_pool_id as well.
201
-
# TODO(plural): build in explicit support for smart defaults, like restriction_id should imply is_banned = false. card_pool_id should imply the latest restriction list.
200
+
# {is_banned,is_restricted,eternal_points,has_global_penalty,universal_faction_cost} all require restriction_id, would be good to have card_pool_id as well.
201
+
# TODO(plural): build in explicit support for smart defaults, like restriction_id should imply is_banned = false. card_pool_id should imply the latest restriction list.
202
202
@parse_tree[:fragments].each{|f|
203
203
iff.include?(:search_term)
204
204
keyword=f[:search_term][:keyword].to_s
@@ -222,7 +222,7 @@ def initialize(query)
222
222
if !value.match?(/\A(\d{4}-\d{2}-\d{2}|\d{8})\Z/)
223
223
@parse_error='Invalid value "%s" for date field "%s" - only YYYY-MM-DD or YYYYMMDD are supported.' % [value,keyword]
0 commit comments