Skip to content
Snippets Groups Projects

Publikace výsledkovky na web MO

Compare and Show latest version
2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 1
1
@@ -344,7 +344,7 @@ def org_score_snapshot_pdf(ct_id: int, scoretable_id: int):
sess = db.get_session()
scoretable = sess.query(db.ScoreTable).get(scoretable_id)
if not scoretable or scoretable.contest_id != ct_id:
if not scoretable or scoretable.contest_id != ct_id or not scoretable.pdf_file:
raise werkzeug.exceptions.NotFound()
return mo.web.util.send_score_pdf(scoretable)
Loading