Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- schedules = {
- "employees": {
- "1":{
- "2018":{
- "aug":{
- "1": {"day": 1, "start": "08:00h"},
- "2": {"day": 1, "start": "08:00h"}
- },
- "sep":{
- "1": {"day": 1, "start": "08:00h"},
- "2": {"day": 1, "start": "08:00h"}
- }
- }
- }
- }
- }
- sel_schedule = {}
- for employees, employee in schedules.items():
- for year, month in employee.items():
- if month == request.args.get("months"):
- sel_schedule = sel_schedule.update(month)
- return render_template("scheduleinfo.html", sched = sel_schedule)
Add Comment
Please, Sign In to add comment