Commit 89b63aa1 authored by Patrick Mischke's avatar Patrick Mischke

Mark all extern as nicht anwesend per default

parent e09afaf9
......@@ -86,7 +86,7 @@ def gen_header(share_dir, reg, sprecher, protokollant, date):
return f_head
def gen_attendance_tab(fsr, num_cols=5, ext=False):
def gen_attendance_tab(fsr, num_cols=5, ext=False, default=''):
"""generate the atandance tables"""
tabdef = '||' + 'c|l||' * num_cols
......@@ -106,9 +106,10 @@ def gen_attendance_tab(fsr, num_cols=5, ext=False):
fsr_tab += " "
else:
fsr_tab += "&"
fsr_tab += " &" + elem
if elem != "":
fsr_tab += " " + default + " &" + elem
else:
fsr_tab += " &"
if index % num_cols == num_cols - 1:
fsr_tab += "\\\\\\hline\n"
else:
......@@ -239,7 +240,7 @@ if __name__ == "__main__":
if not OPT.Vollversamlung:
body += gen_attendance_tab(FSR[0], NUM_COLS)
body += gen_attendance_tab(FSR[1], NUM_COLS_EXT, ext=True)
body += gen_attendance_tab(FSR[1], NUM_COLS_EXT, ext=True, default = '-')
footer = gen_footer(SHARE_DIR, OPT.Vollversamlung, REG,
SPRECHER, PROTOKOLLANT, DATE)
......
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