feat: remove footer from PDF generation and update production image tag
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user