LuisBlanche
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -315,7 +315,7 @@ def generate_poster(deputy_name, message_1, message_2, vote_list):
|
|
315 |
pdfposter = PDFPoster(deputy_name)
|
316 |
pdfposter.retrieve_deputy_data()
|
317 |
pdfbuffer = pdfposter.generate_poster(vote_list, message_1, message_2)
|
318 |
-
pdf_path = f"
|
319 |
with open(pdf_path, "wb") as f:
|
320 |
f.write(pdf_buffer.getvalue())
|
321 |
|
|
|
315 |
pdfposter = PDFPoster(deputy_name)
|
316 |
pdfposter.retrieve_deputy_data()
|
317 |
pdfbuffer = pdfposter.generate_poster(vote_list, message_1, message_2)
|
318 |
+
pdf_path = f"/data/{deputy_name}.pdf"
|
319 |
with open(pdf_path, "wb") as f:
|
320 |
f.write(pdf_buffer.getvalue())
|
321 |
|