From 18c8282f63c64302ef6a50d98ffe364e161a0cd5 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 27 Jun 2023 10:22:29 +0200 Subject: [PATCH] Feat: format lot in locataire table --- pdf_oralia/pages/locataire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):