Skip to content

Commit a704817

Browse files
committed
Expand color description for inside descriptions
#48
1 parent d3ac6c6 commit a704817

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

queries/argument.py

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ def handle_single(self,view_information,query_description,extra = {}):
209209
f = query_description["format"]
210210
possibilities = {
211211
1: self.case_one,2: self.case_two,3: self.case_three,
212-
4: self.case_four,5:self.case_five,6:self.case_six
212+
4: self.case_four,5:self.case_five,6:self.case_six,
213+
7: self.case_seven,8: self.case_eight
213214
}
214215
return possibilities[f](view_information,query_description, extra)
215216

@@ -462,7 +463,23 @@ def case_six(self,view_information,query_description, extra = {}):
462463
self.external_constrained_space = selection
463464
return self.case_one(view_information,query_description,new_extra)
464465

466+
def case_seven(self,view_information,query_description, extra = {}):
467+
################################################################
468+
# <color> [<adjective>] argument <argument_index>
469+
###############################################################
470+
selection = self.get_colorful(view_information,query_description,extra)
471+
new_extra = extra.copy()
472+
new_extra.update(dict(selection=selection))
473+
self.external_constrained_space = selection
474+
return self.case_four(view_information,query_description,new_extra)
465475

466476

467-
468-
477+
def case_eight(self,view_information,query_description, extra = {}):
478+
################################################################
479+
# <color> [<adjective>] argument <argument_index>
480+
###############################################################
481+
selection = self.get_colorful(view_information,query_description,extra)
482+
new_extra = extra.copy()
483+
new_extra.update(dict(selection=selection))
484+
self.external_constrained_space = selection
485+
return self.case_three(view_information,query_description,new_extra)

0 commit comments

Comments
 (0)