diff --git a/app/but/prepajury_desc.py b/app/but/prepajury_desc.py index 653e1ad6b..dbf8925f0 100644 --- a/app/but/prepajury_desc.py +++ b/app/but/prepajury_desc.py @@ -268,7 +268,6 @@ class ParcoursDesc: ) column = self.handle_description(ws, titles, 1, 1) frame.close(4, column - 1) - return column def generate_header(self, ws: ScoExcelSheet): diff --git a/app/but/prepajury_xl_format.py b/app/but/prepajury_xl_format.py index 235335e2e..6d0a6f02f 100644 --- a/app/but/prepajury_xl_format.py +++ b/app/but/prepajury_xl_format.py @@ -590,7 +590,7 @@ class FMT(Enum): @classmethod def compose(cls, composition: list[("FMT", int)], signature: int = 0) -> int: for field, value in composition: - signature = field.write(value, signature) + signature = field.write(value, field.clear(signature)) return signature @classmethod