Skip to content

Commit

Permalink
Fixed error on non permitted filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Mroik committed Sep 22, 2021
1 parent 080994d commit 988f608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def generate_rankings(data):
ris += f"<td>{student[1]}</td>"
ris += "</tr>"
ris += "</table></body></html>"
filename = f"{course_name}_{pub_date}.pdf"
filename = f"{course_name.replace('/', '')}_{pub_date}.pdf"
pdfkit.from_string(ris, f"{DOWNLOADS}/" + filename, options={"--log-level": "none"})
return filename

Expand Down

0 comments on commit 988f608

Please sign in to comment.