jet-admin / jet-bridge

Consider using in PYL-R1714
Performance
Major
5 months ago3 years old
Consider merging these comparisons with 'in' by using 'lookup_type in ('plain', 'auto')'. Use a set instead if elements are hashable.
 84            else:
 85                if date_group in strftime_options:
 86                    return func.strftime(strftime_options[date_group], column)
 87        elif lookup_type == 'plain' or lookup_type == 'auto': 88            return column
 89    except IndexError:
 90        pass