Commit f0f9d002 authored by Lorenz Steinert's avatar Lorenz Steinert

sort fsr with respect to num_cols

parent 824fcf08
......@@ -177,7 +177,7 @@ class FsrLdap:
if isinstance(fsr, Error):
if fsr & (Error.NO_FILE | Error.UNSEC_SEARCH):
fsr = []
return resort_fsr(fsr)
return resort_fsr(fsr, num_cols=self.config['PROTOKOLL'].getint('NUM_COLS')) # noqa: E501
def _get_fsr_extern_ldap(self):
"""get the EFSR from LDAP"""
......@@ -236,7 +236,7 @@ class FsrLdap:
if isinstance(fsr_extern, Error):
if fsr_extern & (Error.NO_FILE | Error.UNSEC_SEARCH):
fsr_extern = []
return resort_fsr(fsr_extern)
return resort_fsr(fsr_extern, num_cols=self.config['PROTOKOLL'].getint('NUM_COLS_EXT')) # noqa: E501
def get_sprecher(config=None):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment