Latex tab still has a bug with jinja2

This commit is contained in:
Benjamin Bertrand
2017-03-24 19:30:31 +03:00
parent 76813726eb
commit 328c960669
2 changed files with 17 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ class Student(object):
}
if len(evalname) != 1:
raise ValueError("Can't initiate Student: dfs contains different evaluation names")
raise ValueError(f"Can't initiate Student: dfs contains different evaluation names ({'-'.join(evalname)})")
self.quest_df = quest_df
self.exo_df = exo_df
@@ -82,13 +82,13 @@ class Student(object):
line += q['Latex_rep']
else:
line += str(q['Mark'])
line += r"\\"
tabular.append(line)
tabular.append(r"\hline")
tabular.append(r"\end{tabular}")
return '\n'.join(tabular)
class Classe(object):
"""