Get horizontal result

This commit is contained in:
Mauricio Baeza 2021-10-12 23:02:01 -05:00
parent 08bc00138b
commit a83b338a50
2 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -33,14 +33,20 @@ class ZAZFunctions(unohelper.Base, XZAZFunctions):
search_mode = 1
value = None
horizontal = False
if len(lookup_array[0]) == 1:
source = [r[0] for r in lookup_array]
else:
horizontal = True
source = lookup_array[0]
if lookup_value in source:
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 match_mode == -1: