Skip to content
Snippets Groups Projects

Sazba diplomů

Merged Martin Mareš requested to merge diplomy into devel
Compare and Show latest version
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -658,7 +658,7 @@ def send_certificate(ct_id: int, cert_type: str, user_filename: str, user_id: Op
sess = db.get_session()
cfile = sess.query(db.CertFile).get((ct_id, typ))
if cfile is None or (approved_only and not cfile.published):
if cfile is None or (approved_only and not cfile.approved):
raise werkzeug.exceptions.NotFound()
file = os.path.join(mo.util.data_dir('certs'), cfile.pdf_file)
Loading