diff --git a/data/employees.csv b/data/employees.csv index 02ab817..a4fcdce 100644 --- a/data/employees.csv +++ b/data/employees.csv @@ -39,8 +39,8 @@ id,first,last,position,status,hired 6,Samantha,Lopez,Network Security,Current,8/15/1984 7,Nick,Wiger,Food Services,Current,11/3/1986 8,Mike,Mitchell,Food Services,Current,8/15/1984 -9,Yusong,Liu,Audio Producer,Terminated,6/8/1949 -1,Emma,Erdbrink,Audio Producer,Current,10/31/1938 +9,Yusong,Liu,Audio Producer,Terminated,6/8/1999 +1,Emma,Erdbrink,Audio Producer,Current,10/31/2000 99,Fatima,Hassan,CEO,Current,8/12/1948 100,Sasha,Johnson,Product Manager,Current,10/4/1985 101,Oscar,Ego,Outreach Coordinator,Current,10/31/1938 \ No newline at end of file diff --git a/scrapple/yoyodyne.py b/scrapple/yoyodyne.py index 2baac2f..2246307 100644 --- a/scrapple/yoyodyne.py +++ b/scrapple/yoyodyne.py @@ -98,6 +98,15 @@ def staff(): @app.route("/staff/") def staff_detail(id_): + # check style parameter + style = request.args.get("style", "") + if style == "new": + template = "staff_detail_new.html" + elif style == "experimental": + template = "staff_detail_experimental.html" + else: + template = "staff_detail.html" + if id_ == "404": abort( 404,