From 8bedd8a97a515cafc23a4744230dae6dfc74a523 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Thu, 4 Sep 2025 21:09:46 +0200 Subject: [PATCH] feat: remove footer from PDF generation and update production image tag --- app/main.py | 7 ------- deploy/overlays/production/kustomization.yaml | 2 +- generate_math_exercises.py | 7 ------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/main.py b/app/main.py index 5b256ca..9a4a5d3 100644 --- a/app/main.py +++ b/app/main.py @@ -157,13 +157,6 @@ class MathExercisesPDF(FPDF): ) self.ln(10) - def footer(self): - self.set_y(-15) - self.set_font("Helvetica", "I", 8) - self.cell( - 0, 10, f"Page {self.page_no()}", 0, 0, "C", new_x="RIGHT", new_y="TOP" - ) - class ExerciseRequest(BaseModel): min_table: int diff --git a/deploy/overlays/production/kustomization.yaml b/deploy/overlays/production/kustomization.yaml index e956cc4..70f19cc 100644 --- a/deploy/overlays/production/kustomization.yaml +++ b/deploy/overlays/production/kustomization.yaml @@ -13,7 +13,7 @@ resources: images: - name: math-exercises newName: harbor.cl1.parano.ch/library/math-exercice - newTag: 1.0.7 + newTag: 1.0.8 # Production-specific labels diff --git a/generate_math_exercises.py b/generate_math_exercises.py index 5461ecd..ba106ce 100644 --- a/generate_math_exercises.py +++ b/generate_math_exercises.py @@ -21,13 +21,6 @@ class MathExercisesPDF(FPDF): ) self.ln(10) - def footer(self): - self.set_y(-15) - self.set_font("Helvetica", "I", 8) - self.cell( - 0, 10, f"Page {self.page_no()}", 0, 0, "C", new_x="RIGHT", new_y="TOP" - ) - def generate_exercises(min_table, max_table, num_exercises=15): """Génère des exercices de multiplication et division aléatoires mélangés sans doublons"""