diff --git a/pdf_oralia/pages/locataire.py b/pdf_oralia/pages/locataire.py index 57bdd67..baba702 100644 --- a/pdf_oralia/pages/locataire.py +++ b/pdf_oralia/pages/locataire.py @@ -64,7 +64,7 @@ def join_tables(tables): def parse_lot(string): words = string.split(" ") - return {"Lot": words[1], "Type": " ".join(words[2:])} + return {"Lot": "{:02d}".format(int(words[1])), "Type": " ".join(words[2:])} def join_row(table):