This commit is contained in:
James Turk 2021-05-22 22:57:58 -04:00
parent e7a66cfcba
commit c0a6f8e804

4
app.py
View File

@ -1,5 +1,5 @@
import csv import csv
from flask import Flask, render_template from flask import Flask, render_template, abort
app = Flask(__name__) app = Flask(__name__)
@ -35,4 +35,4 @@ def staff_detail(id_):
if employee := employees().get(id_): if employee := employees().get(id_):
return render_template("staff_detail.html", employee=employee) return render_template("staff_detail.html", employee=employee)
else: else:
raise 404 abort(404)