404
This commit is contained in:
parent
e7a66cfcba
commit
c0a6f8e804
4
app.py
4
app.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user