Get horizontal result
This commit is contained in:
parent
08bc00138b
commit
a83b338a50
Binary file not shown.
|
@ -33,14 +33,20 @@ class ZAZFunctions(unohelper.Base, XZAZFunctions):
|
||||||
search_mode = 1
|
search_mode = 1
|
||||||
|
|
||||||
value = None
|
value = None
|
||||||
|
|
||||||
|
horizontal = False
|
||||||
if len(lookup_array[0]) == 1:
|
if len(lookup_array[0]) == 1:
|
||||||
source = [r[0] for r in lookup_array]
|
source = [r[0] for r in lookup_array]
|
||||||
else:
|
else:
|
||||||
|
horizontal = True
|
||||||
source = lookup_array[0]
|
source = lookup_array[0]
|
||||||
|
|
||||||
if lookup_value in source:
|
if lookup_value in source:
|
||||||
index = source.index(lookup_value)
|
index = source.index(lookup_value)
|
||||||
value = (return_array[index],)
|
if horizontal:
|
||||||
|
value = ((return_array[0][index],),)
|
||||||
|
else:
|
||||||
|
value = (return_array[index],)
|
||||||
|
|
||||||
if value is None:
|
if value is None:
|
||||||
if match_mode == -1:
|
if match_mode == -1:
|
||||||
|
|
Loading…
Reference in New Issue