Recovered lost local code
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
from flask import Blueprint, render_template, send_from_directory
|
||||
from flask_login import login_required, current_user
|
||||
from model.PmcReport import PmcReport
|
||||
|
||||
pmc_report_bp = Blueprint("pmc_report", __name__)
|
||||
|
||||
@pmc_report_bp.route("/pmc_report/<pmc_no>")
|
||||
@login_required
|
||||
def pmc_report(pmc_no):
|
||||
|
||||
data = PmcReport.get_pmc_report(pmc_no)
|
||||
|
||||
if not data:
|
||||
return "No PMC found with this number", 404
|
||||
|
||||
@@ -24,7 +24,6 @@ def pmc_report(pmc_no):
|
||||
)
|
||||
|
||||
@pmc_report_bp.route("/download_pmc_report/<pmc_no>")
|
||||
@login_required
|
||||
def download_pmc_report(pmc_no):
|
||||
|
||||
result = PmcReport.download_pmc_report(pmc_no)
|
||||
|
||||
Reference in New Issue
Block a user