feat: remove footer from PDF generation and update production image tag

This commit is contained in:
2025-09-04 21:09:46 +02:00
parent e9db1b012d
commit 8bedd8a97a
3 changed files with 1 additions and 15 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"""